1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00

Fix fatigue recalculation using older value (oops)

This commit is contained in:
scrawl 2014-12-02 01:19:35 +01:00
parent dd0cea21b0
commit 7faa849cef

View File

@ -147,6 +147,11 @@ namespace MWMechanics
if (value != currentValue)
{
if(!mIsWerewolf)
mAttributes[index] = value;
else
mWerewolfAttributes[index] = value;
if (index == ESM::Attribute::Intelligence)
mRecalcMagicka = true;
else if (index == ESM::Attribute::Strength ||
@ -164,11 +169,6 @@ namespace MWMechanics
setFatigue(fatigue);
}
}
if(!mIsWerewolf)
mAttributes[index] = value;
else
mWerewolfAttributes[index] = value;
}
void CreatureStats::setHealth(const DynamicStat<float> &value)