1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Fix bug in LuaManager::reloadAllScripts

This commit is contained in:
Petr Mikheev 2023-07-17 02:18:53 +02:00
parent 6f55089ed7
commit b583aad14a

View file

@ -438,6 +438,7 @@ namespace MWLua
mGlobalScripts.setSavedDataDeserializer(mGlobalSerializer.get()); mGlobalScripts.setSavedDataDeserializer(mGlobalSerializer.get());
ESM::LuaScripts data; ESM::LuaScripts data;
mGlobalScripts.save(data); mGlobalScripts.save(data);
mGlobalStorage.clearTemporaryAndRemoveCallbacks();
mGlobalScripts.load(data); mGlobalScripts.load(data);
} }