1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

fix crash on reset

fix tests
This commit is contained in:
florent.teppe 2023-02-20 00:18:34 +01:00
parent 9f597ecfea
commit 6c6dbccd0a
2 changed files with 1 additions and 3 deletions

View File

@ -92,6 +92,7 @@ void MWWorld::WorldModel::clear()
mLastGeneratedRefnum = ESM::RefNum{};
mInteriors.clear();
mExteriors.clear();
mCells.clear();
std::fill(mIdCache.begin(), mIdCache.end(), std::make_pair(ESM::RefId(), (MWWorld::CellStore*)nullptr));
mIdCacheIndex = 0;
}

View File

@ -491,9 +491,6 @@ namespace
else
result = esmStore.get<RecordType>().search(refId);
if (result == nullptr || result->mId != refId)
int debug = 0;
ASSERT_NE(result, nullptr);
EXPECT_EQ(result->mId, refId);
}