mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 21:49:55 +00:00
updateMergedRefs before reading MVRF tags (Fixes #3161)
This commit is contained in:
parent
2eda495f89
commit
69c2c4fcc1
1 changed files with 4 additions and 2 deletions
|
@ -807,6 +807,10 @@ namespace MWWorld
|
|||
}
|
||||
}
|
||||
|
||||
// Do another update here to make sure objects referred to by MVRF tags can be found
|
||||
// This update is only needed for old saves that used the old copy&delete way of moving objects
|
||||
updateMergedRefs();
|
||||
|
||||
while (reader.isNextSub("MVRF"))
|
||||
{
|
||||
reader.cacheSubName();
|
||||
|
@ -848,8 +852,6 @@ namespace MWWorld
|
|||
|
||||
moveTo(MWWorld::Ptr(movedRef, this), otherCell);
|
||||
}
|
||||
|
||||
updateMergedRefs();
|
||||
}
|
||||
|
||||
bool operator== (const CellStore& left, const CellStore& right)
|
||||
|
|
Loading…
Reference in a new issue