mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 05:39:42 +00:00
Add missing initializer in mwworld/worldmodel.cpp (fixes #7135)
This commit is contained in:
parent
2754d63e45
commit
2b4e613522
1 changed files with 2 additions and 0 deletions
|
@ -153,7 +153,9 @@ MWWorld::WorldModel::WorldModel(const MWWorld::ESMStore& store, ESM::ReadersCach
|
|||
: mStore(store)
|
||||
, mReaders(readers)
|
||||
, mIdCacheIndex(0)
|
||||
, mPtrIndexUpdateCounter(0)
|
||||
{
|
||||
mLastGeneratedRefnum.unset();
|
||||
int cacheSize = std::clamp(Settings::Manager::getInt("pointers cache size", "Cells"), 40, 1000);
|
||||
mIdCache = IdCache(cacheSize, std::pair<ESM::RefId, CellStore*>(ESM::RefId::sEmpty, (CellStore*)nullptr));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue