Core/Misc: Fix compiler warnings

This commit is contained in:
Nay committed 2013-08-27 16:06:18 +01:00
1 parent 19accfc3ee
commit cc14e18664
3 files changed
+18 -16

No files matched your search

+5 -5
View File
@@ -15009,13 +15009,13 @@ bool Unit::IsTriggeredAtSpellProcEvent(Unit* victim, Aura* aura, SpellInfo const
{
if (!isVictim)
{
uint32 WeaponSpeed = GetAttackTime(attType);
chance = GetPPMProcChance(WeaponSpeed, spellProcEvent->ppmRate, spellProto);
uint32 weaponSpeed = GetAttackTime(attType);
chance = GetPPMProcChance(weaponSpeed, spellProcEvent->ppmRate, spellProto);
}
else
else if (victim)
{
uint32 WeaponSpeed = victim->GetAttackTime(attType);
chance = victim->GetPPMProcChance(WeaponSpeed, spellProcEvent->ppmRate, spellProto);
uint32 weaponSpeed = victim->GetAttackTime(attType);
chance = victim->GetPPMProcChance(weaponSpeed, spellProcEvent->ppmRate, spellProto);
}
}
// Apply chance modifer aura