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

Merge branch 'fix_reloadlua' into 'master'

Fix bug in LuaManager::reloadAllScripts

See merge request OpenMW/openmw!3239
This commit is contained in:
uramer 2023-07-17 10:11:56 +00:00
commit bb8ac466d1

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