1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-02 20:41:33 +00:00

Clear queued scripts when clearing the Lua manager

This commit is contained in:
Evil Eye 2025-02-10 20:04:24 +01:00
parent 1aa4ef029c
commit 86d56a0b1a

View file

@ -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);
}