From dc036e96d4c674c6ae8321341f98fb34d32436a4 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Thu, 13 Apr 2017 10:13:58 +0400 Subject: [PATCH] fixed magicka calculation on chargen (bug #3694) --- apps/openmw/mwmechanics/mechanicsmanagerimp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp b/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp index aef9a03ca..34269d793 100644 --- a/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp +++ b/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp @@ -73,6 +73,8 @@ namespace MWMechanics MWMechanics::CreatureStats& creatureStats = ptr.getClass().getCreatureStats (ptr); MWMechanics::NpcStats& npcStats = ptr.getClass().getNpcStats (ptr); + npcStats.setNeedRecalcDynamicStats(true); + const ESM::NPC *player = ptr.get()->mBase; // reset