Skip to content

Commit c18c388

Browse files
committed
Another Linux fix
1 parent 9094dba commit c18c388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/src/lua/interop/file.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int asfile(lua_State *L)
2424
auto amx = reinterpret_cast<AMX*>(lua_touserdata(L, lua_upvalueindex(1)));
2525
if(!amx::FileLoad(reinterpret_cast<cell>(ptr), amx, f))
2626
#else
27-
if(!amx::CellToFile(reinterpret_cast<cell>(ptr), nullptr, f))
27+
if(!amx::FileLoad(reinterpret_cast<cell>(ptr), nullptr, f))
2828
#endif
2929
{
3030
return lua::argerror(L, 1, "invalid file handle");
@@ -69,7 +69,7 @@ int tofile(lua_State *L)
6969
auto amx = reinterpret_cast<AMX*>(lua_touserdata(L, lua_upvalueindex(1)));
7070
cell value = amx::FileStore(file.f, amx);
7171
#else
72-
cell value = amx::FileToCell(file.f, nullptr);
72+
cell value = amx::FileStore(file.f, nullptr);
7373
#endif
7474
if(value == 0)
7575
{

0 commit comments

Comments
 (0)