Core/Misc: Fix static analysis issues

Fix some static analysis issues reported by Coverity
This commit is contained in:
jackpoz
2015-01-18 18:30:34 +01:00
parent dfa0f2a253
commit 5dfd07fa4f
5 changed files with 12 additions and 2 deletions

View File

@@ -631,7 +631,7 @@ uint32 Unit::DealDamage(Unit* victim, uint32 damage, CleanDamage const* cleanDam
// Rage from Damage made (only from direct weapon damage)
if (cleanDamage && damagetype == DIRECT_DAMAGE && this != victim && getPowerType() == POWER_RAGE)
{
uint32 rage = uint32(GetAttackTime(cleanDamage->attackType) / 1000 * 8.125f);
uint32 rage = uint32(GetAttackTime(cleanDamage->attackType) / 1000.f * 8.125f);
switch (cleanDamage->attackType)
{
case OFF_ATTACK: