mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 16:29:55 +00:00
Merge branch 'fix_lua_build' into 'master'
Fix build with Lua 5.4.6 See merge request OpenMW/openmw!3640
This commit is contained in:
commit
102d2c4b43
1 changed files with 2 additions and 2 deletions
|
@ -123,8 +123,8 @@ namespace MWLua
|
||||||
|
|
||||||
void LuaManager::update()
|
void LuaManager::update()
|
||||||
{
|
{
|
||||||
if (Settings::lua().mGcStepsPerFrame > 0)
|
if (const int steps = Settings::lua().mGcStepsPerFrame; steps > 0)
|
||||||
lua_gc(mLua.sol(), LUA_GCSTEP, Settings::lua().mGcStepsPerFrame);
|
lua_gc(mLua.sol(), LUA_GCSTEP, steps);
|
||||||
|
|
||||||
if (mPlayer.isEmpty())
|
if (mPlayer.isEmpty())
|
||||||
return; // The game is not started yet.
|
return; // The game is not started yet.
|
||||||
|
|
Loading…
Reference in a new issue