mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
Allow modCurrent instructions to decrease below zero (Bug #1589)
This commit is contained in:
parent
2506c16bf5
commit
205e039a39
@ -260,7 +260,7 @@ namespace MWScript
|
||||
MWMechanics::DynamicStat<float> stat (ptr.getClass().getCreatureStats (ptr)
|
||||
.getDynamic (mIndex));
|
||||
|
||||
stat.setCurrent (diff + current);
|
||||
stat.setCurrent (diff + current, true);
|
||||
|
||||
ptr.getClass().getCreatureStats (ptr).setDynamic (mIndex, stat);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user