mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 16:15:31 +00:00
Fix #5821: NPCs from mods getting removed if mod order was changed
This commit is contained in:
parent
b286397dd4
commit
157b14cdaa
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