Allow modCurrent instructions to decrease below zero (Bug #1589)

This commit is contained in:
scrawl 2014-06-30 17:58:08 +02:00
parent 2506c16bf5
commit 205e039a39

View file

@ -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);
}