From 394b2c6845535c6305a7e9a35b630f59a3ffaaf7 Mon Sep 17 00:00:00 2001 From: Nay Date: Mon, 29 Jul 2013 21:46:49 +0100 Subject: Scripts/OnyxiasLair: Fix a crash in boss_onyxia Closes #10393 Note: this just fixes the crash, not the issues the script has (a.k.a rewrite this) --- src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp b/src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp index 0adc6190d4b..79421ffe37e 100644 --- a/src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp +++ b/src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp @@ -408,7 +408,8 @@ public: me->InterruptNonMeleeSpells(false); Talk(EMOTE_BREATH); - DoCast(me, PointData->SpellId); + if (PointData) /// @todo: In what cases is this null? What should we do? + DoCast(me, PointData->SpellId); events.ScheduleEvent(EVENT_DEEP_BREATH, 70000); } break; -- cgit v1.2.3