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

pull/2983/head
Evil Eye 4 years ago
parent c72fda7ecc
commit 144a7f330f

@ -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;
}

Loading…
Cancel
Save