mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 00:45:34 +00:00
Merge branch 'fix_5821' into 'master'
Fix #5821: NPCs from mods getting removed if mod order was changed Closes #5821 See merge request OpenMW/openmw!577
This commit is contained in:
commit
94e8855c8c
2 changed files with 8 additions and 0 deletions
|
@ -97,6 +97,7 @@
|
|||
Bug #5739: Saving and loading the save a second or two before hitting the ground doesn't count fall damage
|
||||
Bug #5758: Paralyzed actors behavior is inconsistent with vanilla
|
||||
Bug #5762: Movement solver is insufficiently robust
|
||||
Bug #5821: NPCs from mods getting removed if mod order was changed
|
||||
Feature #390: 3rd person look "over the shoulder"
|
||||
Feature #1536: Show more information about level on menu
|
||||
Feature #2386: Distant Statics in the form of Object Paging
|
||||
|
|
|
@ -921,6 +921,13 @@ namespace MWWorld
|
|||
refnum.load(reader, true, "MVRF");
|
||||
movedTo.load(reader);
|
||||
|
||||
if (refnum.hasContentFile())
|
||||
{
|
||||
auto iter = contentFileMap.find(refnum.mContentFile);
|
||||
if (iter != contentFileMap.end())
|
||||
refnum.mContentFile = iter->second;
|
||||
}
|
||||
|
||||
// Search for the reference. It might no longer exist if its content file was removed.
|
||||
Ptr movedRef = searchViaRefNum(refnum);
|
||||
if (movedRef.isEmpty())
|
||||
|
|
Loading…
Reference in a new issue