1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 20:53:50 +00:00

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); creatureStats.setAttribute(i, stat);
} }
if (creatureStats.needToRecalcDynamicStats())
calculateDynamicStats(ptr);
{ {
Spells & spells = creatureStats.getSpells(); Spells & spells = creatureStats.getSpells();
for (Spells::TIterator it = spells.begin(); it != spells.end(); ++it) for (Spells::TIterator it = spells.begin(); it != spells.end(); ++it)