1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 08:09:41 +00:00

Merge branch 'fix_cellstore' into 'master'

Fix bug in CellStore::writeReferences (#7542)

Closes #7542

See merge request OpenMW/openmw!3380
This commit is contained in:
psi29a 2023-08-28 07:01:17 +00:00
commit b866483ca1

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");