mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-15 20:52:22 -04:00
Core/Misc: Fix static analysis issues
Fix some static analysis issues reported by Coverity
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user