We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9094dba commit c18c388Copy full SHA for c18c388
plugins/src/lua/interop/file.cpp
@@ -24,7 +24,7 @@ int asfile(lua_State *L)
24
auto amx = reinterpret_cast<AMX*>(lua_touserdata(L, lua_upvalueindex(1)));
25
if(!amx::FileLoad(reinterpret_cast<cell>(ptr), amx, f))
26
#else
27
- if(!amx::CellToFile(reinterpret_cast<cell>(ptr), nullptr, f))
+ if(!amx::FileLoad(reinterpret_cast<cell>(ptr), nullptr, f))
28
#endif
29
{
30
return lua::argerror(L, 1, "invalid file handle");
@@ -69,7 +69,7 @@ int tofile(lua_State *L)
69
70
cell value = amx::FileStore(file.f, amx);
71
72
- cell value = amx::FileToCell(file.f, nullptr);
+ cell value = amx::FileStore(file.f, nullptr);
73
74
if(value == 0)
75
0 commit comments