Core: Remove "enumeration value 'xxx' not handled in switch" warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-21 20:55:31 +02:00
parent 77bd968c63
commit e7856a831c
11 changed files with 68 additions and 5 deletions
+4
View File
@@ -2571,6 +2571,8 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
case TYPEID_PLAYER:
m_targets.setUnitTarget((Unit*)result);
break;
default:
break;
}
}
else
@@ -6900,6 +6902,8 @@ bool Spell::IsValidSingleTargetEffect(Unit const* target, Targets type) const
return m_caster->IsInRaidWith(target);
case TARGET_UNIT_TARGET_PUPPET:
return target->HasUnitTypeMask(UNIT_MASK_PUPPET) && m_caster == target->GetOwner();
default:
break;
}
return true;
}
+2
View File
@@ -3522,6 +3522,8 @@ void SpellMgr::LoadSpellCustomAttr()
spellInfo->Targets |= TARGET_FLAG_UNIT;
count++;
break;
default:
break;
}
}