1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 01:45:33 +00:00

Don't call Store::setUp() unnecessarily

Fixes a threading issue with ESM::Land store caused by calling setUp() while it's being used.
This commit is contained in:
scrawl 2018-02-13 00:38:55 +00:00
parent 5bb7d76913
commit a708ac488e
No known key found for this signature in database
GPG key ID: 2E6CC3676024C402
3 changed files with 6 additions and 1 deletions

View file

@ -607,6 +607,11 @@ namespace MWWorld
}
return ptr;
}
void Store<ESM::Cell>::clearDynamic()
{
setUp();
}
void Store<ESM::Cell>::setUp()
{
typedef DynamicExt::iterator ExtIterator;

View file

@ -293,6 +293,7 @@ namespace MWWorld
const ESM::Cell *find(const std::string &id) const;
const ESM::Cell *find(int x, int y) const;
virtual void clearDynamic();
void setUp();
RecordId load(ESM::ESMReader &esm);

View file

@ -295,7 +295,6 @@ namespace MWWorld
mWorldScene->clear();
mStore.clearDynamic();
mStore.setUp();
if (mPlayer)
{