Core/Misc: Misc 3.3.5a fixes

This commit is contained in:
Aokromes committed 2015-08-08 16:45:38 +02:00
1 parent f791d23dc7
commit deac934b80
5 files changed
+19 -6

No files matched your search

+3
View File
@@ -2099,6 +2099,9 @@ uint32 Unit::CalculateDamage(WeaponAttackType attType, bool normalized, bool add
}
}
minDamage = std::max(0.f, minDamage);
maxDamage = std::max(0.f, maxDamage);
if (minDamage > maxDamage)
std::swap(minDamage, maxDamage);