Skip to content

Commit

Permalink
Another Linux fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IS4Code committed Feb 7, 2019
1 parent 9094dba commit c18c388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/src/lua/interop/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int asfile(lua_State *L)
auto amx = reinterpret_cast<AMX*>(lua_touserdata(L, lua_upvalueindex(1)));
if(!amx::FileLoad(reinterpret_cast<cell>(ptr), amx, f))
#else
if(!amx::CellToFile(reinterpret_cast<cell>(ptr), nullptr, f))
if(!amx::FileLoad(reinterpret_cast<cell>(ptr), nullptr, f))
#endif
{
return lua::argerror(L, 1, "invalid file handle");
Expand Down Expand Up @@ -69,7 +69,7 @@ int tofile(lua_State *L)
auto amx = reinterpret_cast<AMX*>(lua_touserdata(L, lua_upvalueindex(1)));
cell value = amx::FileStore(file.f, amx);
#else
cell value = amx::FileToCell(file.f, nullptr);
cell value = amx::FileStore(file.f, nullptr);
#endif
if(value == 0)
{
Expand Down

0 comments on commit c18c388

Please sign in to comment.