From b583aad14ac12db3da47b0fa169beac8f856286d Mon Sep 17 00:00:00 2001 From: Petr Mikheev Date: Mon, 17 Jul 2023 02:18:53 +0200 Subject: [PATCH] Fix bug in LuaManager::reloadAllScripts --- apps/openmw/mwlua/luamanagerimp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/openmw/mwlua/luamanagerimp.cpp b/apps/openmw/mwlua/luamanagerimp.cpp index 7244932bc4..e4828167c4 100644 --- a/apps/openmw/mwlua/luamanagerimp.cpp +++ b/apps/openmw/mwlua/luamanagerimp.cpp @@ -438,6 +438,7 @@ namespace MWLua mGlobalScripts.setSavedDataDeserializer(mGlobalSerializer.get()); ESM::LuaScripts data; mGlobalScripts.save(data); + mGlobalStorage.clearTemporaryAndRemoveCallbacks(); mGlobalScripts.load(data); }