couple wrong return types

This commit is contained in:
faramir118 authored and Machiavelli committed 2012-04-11 19:58:12 +02:00
1 parent c09cd26739
commit e3f198ca56
2 files changed
+4 -4

No files matched your search

@@ -177,11 +177,11 @@ SpellInfo const* ScriptedAI::SelectSpell(Unit* target, uint32 school, uint32 mec
{
//No target so we can't cast
if (!target)
return false;
return NULL;
//Silenced so we can't cast
if (me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SILENCED))
return false;
return NULL;
//Using the extended script system we first create a list of viable spells
SpellInfo const* apSpell[CREATURE_MAX_SPELLS];