Core: Fix warning

This commit is contained in:
Vincent_Michael
2013-01-02 21:42:50 +01:00
parent dbf99992e1
commit 57c275f3e1

View File

@@ -1268,7 +1268,7 @@ bool CreatureEventAI::CanCast(Unit* target, SpellInfo const* spell, bool trigger
return false;
//Check for power
if (!triggered && me->GetPower((Powers)spell->PowerType) < spell->CalcPowerCost(me, spell->GetSchoolMask()))
if (!triggered && me->GetPower((Powers)spell->PowerType) < uint32(spell->CalcPowerCost(me, spell->GetSchoolMask())))
return false;
//Unit is out of range of this spell