1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-13 12:40:04 +00:00

fixed a stats bug (reducing modified stats via setModified didn't work correctly

This commit is contained in:
Marc Zinnschlag 2010-08-05 16:40:21 +02:00
parent c883921af3
commit 8e6a765603

View File

@ -49,7 +49,7 @@ namespace MWMechanics
value = min + (mModified - mBase);
diff = value - mModified;
}
else if (mBase>max-diff)
else if (mBase+diff>max)
{
value = max + (mModified - mBase);
diff = value - mModified;