summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2016-09-16 18:13:52 +0200
committerYehonal <yehonal.azeroth@gmail.com>2016-09-24 14:45:45 +0200
commitd177e923cab288a64572550f46c7ed47f861bfb0 (patch)
tree2edc0879b17a8d9cbc1e3cd5f890b01b63c55580 /src
parent8cee0fe498fca2ac8a0e52193fda7cc3fc3df7db (diff)
Fix crash with algalon
Diffstat (limited to 'src')
-rw-r--r--src/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp
index d14b1787e7..b30263d76c 100644
--- a/src/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp
+++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp
@@ -1322,8 +1322,9 @@ class spell_algalon_big_bang : public SpellScriptLoader
void CheckTargets()
{
- if (!_targetCount)
- GetCaster()->GetAI()->DoAction(ACTION_ASCEND);
+ Unit *caster = GetCaster();
+ if (!_targetCount && caster && caster->GetAI())
+ caster->GetAI()->DoAction(ACTION_ASCEND);
}
void Register()