* Another small batch of fixes from static analysis tool.

This commit is contained in:
Subv committed 2013-05-17 23:08:28 -05:00
1 parent 60a88a08f5
commit 98ad7309c9
5 files changed
+11 -8

No files matched your search

+2
View File
@@ -10466,6 +10466,7 @@ bool Unit::isSpellCrit(Unit* victim, SpellInfo const* spellProto, SpellSchoolMas
default:
return false;
}
break;
case SPELL_DAMAGE_CLASS_MAGIC:
{
if (schoolMask & SPELL_SCHOOL_MASK_NORMAL)
@@ -10612,6 +10613,7 @@ bool Unit::isSpellCrit(Unit* victim, SpellInfo const* spellProto, SpellSchoolMas
break;
}
}
/// Intentional fallback. Calculate critical strike chance for both Ranged and Melee spells
case SPELL_DAMAGE_CLASS_RANGED:
{
if (victim)