1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-06 04:45:32 +00:00

Fix a regression that meant missing spells would prevent a save from being loaded

This commit is contained in:
Evil Eye 2020-08-04 18:28:10 +02:00
parent c72fda7ecc
commit 144a7f330f

View file

@ -455,8 +455,7 @@ namespace MWMechanics
bool result;
std::tie(mSpellList, result) = MWBase::Environment::get().getWorld()->getStore().getSpellList(actorId);
mSpellList->addListener(this);
for(const auto& id : mSpellList->getSpells())
addSpell(SpellList::getSpell(id));
addAllToInstance(mSpellList->getSpells());
return result;
}