Fix #5821: NPCs from mods getting removed if mod order was changed

brute_force_lights
Petr Mikheev 3 years ago
parent b286397dd4
commit 157b14cdaa

@ -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…
Cancel
Save