Core/Movement: Fix a potential crash on newly created pets. Closes #21791.

This commit is contained in:
Treeston
2018-04-07 17:23:26 +02:00
parent 4fc9b2cc94
commit 74defba5a7
4 changed files with 4 additions and 3 deletions

View File

@@ -1830,7 +1830,7 @@ class spell_pal_righteous_defense : public SpellScript
return SPELL_CAST_OK;
}
void HandleDummy(SpellEffIndex effIndex)
void HandleDummy(SpellEffIndex /*effIndex*/)
{
if (Unit* target = GetHitUnit())
{