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:
parent
c883921af3
commit
8e6a765603
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user