Core/Unit: consistency fix

This commit is contained in:
ariel- authored and Aokromes committed 2016-11-02 03:12:25 +01:00
1 parent 469870a141
commit 4e61ff8c9c
1 file changed
+1 -1
+1 -1
View File
@@ -122,7 +122,7 @@ m_damageType(DIRECT_DAMAGE), m_attackType(dmgInfo.attackType)
void DamageInfo::ModifyDamage(int32 amount)
{
amount = std::max(amount, -static_cast<int32>(m_damage));
amount = std::max(amount, -static_cast<int32>(GetDamage()));
m_damage += amount;
}