mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 21:41:33 +00:00
Clear queued scripts when clearing the Lua manager
This commit is contained in:
parent
1aa4ef029c
commit
86d56a0b1a
1 changed files with 1 additions and 0 deletions
|
@ -343,6 +343,7 @@ namespace MWLua
|
||||||
mPlayerStorage.clearTemporaryAndRemoveCallbacks();
|
mPlayerStorage.clearTemporaryAndRemoveCallbacks();
|
||||||
mInputActions.clear();
|
mInputActions.clear();
|
||||||
mInputTriggers.clear();
|
mInputTriggers.clear();
|
||||||
|
mQueuedAutoStartedScripts.clear();
|
||||||
for (int i = 0; i < 5; ++i)
|
for (int i = 0; i < 5; ++i)
|
||||||
lua_gc(mLua.unsafeState(), LUA_GCCOLLECT, 0);
|
lua_gc(mLua.unsafeState(), LUA_GCCOLLECT, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue