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:
commit
bb8ac466d1
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue