1
0
Fork 0
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:
Petr Mikheev 2023-01-08 21:55:42 +01:00
parent 2754d63e45
commit 2b4e613522

View file

@ -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));
}