Skip to content

Commit

Permalink
Merge branch 'fix_lua_build' into 'master'
Browse files Browse the repository at this point in the history
Fix build with Lua 5.4.6

See merge request OpenMW/openmw!3640
  • Loading branch information
Capostrophic committed Dec 8, 2023
2 parents 7894e7a + 1a39ef0 commit 102d2c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/openmw/mwlua/luamanagerimp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ namespace MWLua

void LuaManager::update()
{
if (Settings::lua().mGcStepsPerFrame > 0)
lua_gc(mLua.sol(), LUA_GCSTEP, Settings::lua().mGcStepsPerFrame);
if (const int steps = Settings::lua().mGcStepsPerFrame; steps > 0)
lua_gc(mLua.sol(), LUA_GCSTEP, steps);

if (mPlayer.isEmpty())
return; // The game is not started yet.
Expand Down

0 comments on commit 102d2c4

Please sign in to comment.