diff --git a/apps/openmw/mwworld/esmstore.cpp b/apps/openmw/mwworld/esmstore.cpp index 2e6161bf5..1882c6e1a 100644 --- a/apps/openmw/mwworld/esmstore.cpp +++ b/apps/openmw/mwworld/esmstore.cpp @@ -125,6 +125,8 @@ void ESMStore::setUp() std::map::iterator storeIt = mStores.begin(); for (; storeIt != mStores.end(); ++storeIt) { + storeIt->second->setUp(); + if (isCacheableRecord(storeIt->first)) { std::vector identifiers; @@ -133,8 +135,6 @@ void ESMStore::setUp() for (std::vector::const_iterator record = identifiers.begin(); record != identifiers.end(); ++record) mIds[*record] = storeIt->first; } - - storeIt->second->setUp(); } mSkills.setUp(); mMagicEffects.setUp();