Commit fb26c2c2 authored by scrawl's avatar scrawl

Fix autocalculated NPCs not having health/magicka/fatigue set correctly (Fixes #1943)

parent b1e74e2a
......@@ -335,6 +335,8 @@ namespace MWClass
data->mNpcStats.setLevel(ref->mBase->mNpdt52.mLevel);
data->mNpcStats.setBaseDisposition(ref->mBase->mNpdt52.mDisposition);
data->mNpcStats.setReputation(ref->mBase->mNpdt52.mReputation);
data->mNpcStats.setNeedRecalcDynamicStats(false);
}
else
{
......@@ -349,6 +351,8 @@ namespace MWClass
autoCalculateAttributes(ref->mBase, data->mNpcStats);
autoCalculateSkills(ref->mBase, data->mNpcStats, ptr);
data->mNpcStats.setNeedRecalcDynamicStats(true);
}
// race powers
......@@ -388,8 +392,6 @@ namespace MWClass
data->mNpcStats.setGoldPool(gold);
data->mNpcStats.setNeedRecalcDynamicStats(false);
// store
ptr.getRefData().setCustomData (data.release());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment