Correct SD2 return values
This caused Clang to fail
This commit is contained in:
parent
fce53c9d60
commit
1eb0c33e69
@ -245,13 +245,13 @@ SpellEntry const* ScriptedAI::SelectSpell(Unit* pTarget, int32 /*uiSchool*/, int
|
||||
// No target so we can't cast
|
||||
if (!pTarget)
|
||||
{
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Silenced so we can't cast
|
||||
if (m_creature->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SILENCED))
|
||||
{
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Using the extended script system we first create a list of viable spells
|
||||
|
Loading…
x
Reference in New Issue
Block a user