Do not sort the Land store every savegame load - it is static anyway (bug #4844)

pull/2372/head
Andrei Kortunov 6 years ago
parent 57176ff8d4
commit ab03b9ac1c

@ -51,6 +51,7 @@
Bug #4828: Potion looping effects VFX are not shown for NPCs
Bug #4837: CTD when a mesh with NiLODNode root node with particles is loaded
Bug #4841: Russian localization ignores implicit keywords
Bug #4844: Data race in savegame loading / GlobalMap render
Bug #4847: Idle animation reset oddities
Bug #4851: No shadows since switch to OSG
Bug #4860: Actors outside of processing range visible for one frame after spawning

@ -500,7 +500,12 @@ namespace MWWorld
}
void Store<ESM::Land>::setUp()
{
// The land is static for given game session, there is no need to refresh it every load.
if (mBuilt)
return;
std::sort(mStatic.begin(), mStatic.end(), Compare());
mBuilt = true;
}

@ -247,6 +247,8 @@ namespace MWWorld
RecordId load(ESM::ESMReader &esm);
void setUp();
private:
bool mBuilt = false;
};
template <>

Loading…
Cancel
Save