Fix crash with algalon

This commit is contained in:
Yehonal
2016-09-16 18:13:52 +02:00
parent 8cee0fe498
commit d177e923ca

View File

@@ -1322,8 +1322,9 @@ class spell_algalon_big_bang : public SpellScriptLoader
void CheckTargets() void CheckTargets()
{ {
if (!_targetCount) Unit *caster = GetCaster();
GetCaster()->GetAI()->DoAction(ACTION_ASCEND); if (!_targetCount && caster && caster->GetAI())
caster->GetAI()->DoAction(ACTION_ASCEND);
} }
void Register() void Register()