From 4b4237174fa7cfefadad38dbe236213c33390225 Mon Sep 17 00:00:00 2001 From: Zedron Date: Sun, 24 Jan 2016 17:09:02 -0600 Subject: Core/Spells: Fixed a possible crash in spell_pal_light_s_beacon --- src/server/scripts/Spells/spell_paladin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp index 5e8b5ab8885..5887aded51c 100644 --- a/src/server/scripts/Spells/spell_paladin.cpp +++ b/src/server/scripts/Spells/spell_paladin.cpp @@ -912,6 +912,8 @@ class spell_pal_light_s_beacon : public SpellScriptLoader bool CheckProc(ProcEventInfo& eventInfo) { + if (!eventInfo.GetActionTarget()) + return false; if (eventInfo.GetActionTarget()->HasAura(SPELL_PALADIN_BEACON_OF_LIGHT, eventInfo.GetActor()->GetGUID())) return false; return true; -- cgit v1.2.3