From 52ae84d581eaada2d754b74a0af9d9e4e8d9a012 Mon Sep 17 00:00:00 2001 From: yehonal Date: Sun, 3 Dec 2017 05:39:02 +0100 Subject: [PATCH] Fixed crash after 635f7831e1efa4030365aac0ee7531a75ca8e604 --- src/scripts/Spells/spell_dk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/Spells/spell_dk.cpp b/src/scripts/Spells/spell_dk.cpp index 445c0d231..27263233f 100644 --- a/src/scripts/Spells/spell_dk.cpp +++ b/src/scripts/Spells/spell_dk.cpp @@ -1568,7 +1568,7 @@ class spell_dk_death_grip : public SpellScriptLoader if (caster != target) { - if (targetCreature->isWorldBoss() || targetCreature->IsDungeonBoss()) + if (targetCreature && (targetCreature->isWorldBoss() || targetCreature->IsDungeonBoss())) { return; }