File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 223
223
Bug #8223: Ghosts don't move while spellcasting
224
224
Bug #8231: AGOP doesn't like NiCollisionSwitch
225
225
Bug #8237: Non-bipedal creatures should *not* use spellcast equip/unequip animations
226
+ Bug #8252: Plugin dependencies are not required to be loaded
226
227
Feature #1415: Infinite fall failsafe
227
228
Feature #2566: Handle NAM9 records for manual cell references
228
229
Feature #3501: OpenMW-CS: Instance Editing - Shortcuts for axial locking
Original file line number Diff line number Diff line change @@ -45,9 +45,10 @@ namespace MWWorld
45
45
reader->open (filepath);
46
46
reader->resolveParentFileIndices (mReaders );
47
47
48
- assert (reader->getGameFiles ().size () == reader->getParentFileIndices ().size ());
49
- for (std::size_t i = 0 , n = reader->getParentFileIndices ().size (); i < n; ++i)
50
- if (i == static_cast <std::size_t >(reader->getIndex ()))
48
+ const std::vector<int >& parentIndices = reader->getParentFileIndices ();
49
+ assert (reader->getGameFiles ().size () == parentIndices.size ());
50
+ for (std::size_t i = 0 , n = parentIndices.size (); i < n; ++i)
51
+ if (parentIndices[i] == reader->getIndex ())
51
52
throw std::runtime_error (" File " + Files::pathToUnicodeString (reader->getName ()) + " asks for parent file "
52
53
+ reader->getGameFiles ()[i].name
53
54
+ " , but it is not available or has been loaded in the wrong order. "
You can’t perform that action at this time.
0 commit comments