1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +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;