Minor fix

openmw-38
scrawl 9 years ago
parent b856460f86
commit cc2315a0de

@ -125,6 +125,8 @@ void ESMStore::setUp()
std::map<int, StoreBase *>::iterator storeIt = mStores.begin(); std::map<int, StoreBase *>::iterator storeIt = mStores.begin();
for (; storeIt != mStores.end(); ++storeIt) { for (; storeIt != mStores.end(); ++storeIt) {
storeIt->second->setUp();
if (isCacheableRecord(storeIt->first)) if (isCacheableRecord(storeIt->first))
{ {
std::vector<std::string> identifiers; std::vector<std::string> identifiers;
@ -133,8 +135,6 @@ void ESMStore::setUp()
for (std::vector<std::string>::const_iterator record = identifiers.begin(); record != identifiers.end(); ++record) for (std::vector<std::string>::const_iterator record = identifiers.begin(); record != identifiers.end(); ++record)
mIds[*record] = storeIt->first; mIds[*record] = storeIt->first;
} }
storeIt->second->setUp();
} }
mSkills.setUp(); mSkills.setUp();
mMagicEffects.setUp(); mMagicEffects.setUp();

Loading…
Cancel
Save