1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Merge pull request #2983 from Assumeru/spell-regression

Fix #5566
This commit is contained in:
Bret Curtis 2020-08-05 09:57:47 +02:00 committed by GitHub
commit 2e05b5a4ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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