Skip to content

Commit

Permalink
Fix CI build (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirjuddington committed Jan 24, 2025
1 parent 69ac6ef commit a62c5d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Scripting/Lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ bool lua::run(const string& program)
success = false;
}

lua_gc(lua, LUA_GCCOLLECT);
lua_gc(lua, LUA_GCCOLLECT, 0);

return success;
}
Expand Down Expand Up @@ -523,7 +523,7 @@ CONSOLE_COMMAND(script_file, 1, true)

CONSOLE_COMMAND(lua_mem, 0, false)
{
auto mem = lua_gc(lua::state(), LUA_GCCOUNT);
auto mem = lua_gc(lua::state(), LUA_GCCOUNT, 0);
if (mem < 1024)
log::console(fmt::format("Lua state using {} bytes memory", mem));
else
Expand Down

0 comments on commit a62c5d4

Please sign in to comment.