mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Merge branch 'menucrash' into 'master'
Clear queued scripts when clearing the Lua manager Closes #8346 See merge request OpenMW/openmw!4537
This commit is contained in:
commit
19793c21b4
1 changed files with 1 additions and 0 deletions
|
@ -343,6 +343,7 @@ namespace MWLua
|
|||
mPlayerStorage.clearTemporaryAndRemoveCallbacks();
|
||||
mInputActions.clear();
|
||||
mInputTriggers.clear();
|
||||
mQueuedAutoStartedScripts.clear();
|
||||
for (int i = 0; i < 5; ++i)
|
||||
lua_gc(mLua.unsafeState(), LUA_GCCOLLECT, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue