mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
Merge branch 'fix_7135' into 'master'
Add missing initializer in mwworld/worldmodel.cpp (fixes #7135) Closes #7135 See merge request OpenMW/openmw!2596
This commit is contained in:
commit
b1571b92bf
@ -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 New Issue
Block a user