1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-25 15:03:07 +00:00

Insert exterior cells created by moved refs into mSharedExt

This commit is contained in:
Evil Eye 2025-12-23 23:24:28 +01:00
parent 4a062c09a4
commit 189e4a6f6d

View file

@ -597,9 +597,10 @@ namespace MWWorld
newCell.mAmbi.mFogDensity = 0;
newCell.updateId();
ESM::Cell* newCellInserted = &mCells.insert(std::make_pair(newCell.mId, newCell)).first->second;
return mExt.insert(std::make_pair(key, newCellInserted)).first->second;
ESM::Cell* newCellInserted = &mCells.emplace(newCell.mId, newCell).first->second;
mExt.emplace(key, newCellInserted);
mSharedExt.emplace_back(newCellInserted);
return newCellInserted;
}
const ESM::Cell* Store<ESM::Cell>::find(const ESM::RefId& id) const
{