1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-04 05:39:40 +00:00

Fix bug in CellStore::writeReferences (#7542)

This commit is contained in:
Petr Mikheev 2023-08-27 14:30:46 +02:00
parent 102826ddb6
commit 1143efd46d

View file

@ -1021,6 +1021,8 @@ namespace MWWorld
for (const auto& [base, store] : mMovedToAnotherCell)
{
ESM::RefNum refNum = base->mRef.getRefNum();
if (base->mData.isDeleted() && !refNum.hasContentFile())
continue; // filtered out in writeReferenceCollection
ESM::RefId movedTo = store->getCell()->getId();
writer.writeFormId(refNum, true, "MVRF");