Merge pull request #981 from Allofich/magicka

Fix timing of some magicka calculations
This commit is contained in:
scrawl 2016-06-29 20:42:18 +02:00 committed by GitHub
commit 528de956da

View file

@ -532,6 +532,9 @@ namespace MWMechanics
creatureStats.setAttribute(i, stat);
}
if (creatureStats.needToRecalcDynamicStats())
calculateDynamicStats(ptr);
{
Spells & spells = creatureStats.getSpells();
for (Spells::TIterator it = spells.begin(); it != spells.end(); ++it)