Merge branch 'fix_lua_build' into 'master'

Fix build with Lua 5.4.6

See merge request OpenMW/openmw!3640
macos_ci_fix
Alexei Kotov 1 year ago
commit 102d2c4b43

@ -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.

Loading…
Cancel
Save