Fixed changing stat boost by negative actually increasing it.
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2020-01-05 14:57:17 +01:00
1 parent fbfcc53a02
commit 144d17d859
1 file changed
+1 -1
+1 -1
View File
@@ -45,7 +45,7 @@ void Battling::Creature::ChangeStatBoost(Core::Statistic stat, int8_t diffAmount
if (diffAmount > 0)
this->_statBoost.IncreaseStatBy(stat, diffAmount);
else
this->_statBoost.DecreaseStatBy(stat, diffAmount);
this->_statBoost.DecreaseStatBy(stat, -diffAmount);
this->RecalculateBoostedStat(stat);
}