From 4e27109cea5aa7e85afbf3b1730abc1286f75caa Mon Sep 17 00:00:00 2001 From: talamortis Date: Sun, 22 Jul 2018 12:08:52 +0100 Subject: [PATCH] Fixed crash issue with death grip from previous commit. *Tested on both Windows and Linux system. --- src/server/scripts/Spells/spell_dk.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index 5fcd509d5..cb8ef709b 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -1563,9 +1563,9 @@ class spell_dk_death_grip : public SpellScriptLoader { Creature* targetCreature = GetHitCreature(); - switch (entry = targetCreature->GetEntry()) + switch (targetCreature->GetEntry()) { - //Alliance Faction Champions + //Alliance Faction Champions case 34461: case 34460: case 34469: @@ -1581,7 +1581,7 @@ class spell_dk_death_grip : public SpellScriptLoader case 34474: case 34475: - //Horde Faction Champions + //Horde Faction Champions case 34458: case 34451: case 34459: @@ -1596,10 +1596,10 @@ class spell_dk_death_grip : public SpellScriptLoader case 34455: case 34450: case 34453: - break; - default: + return entry; break; } + return 0; } void HandleBaseDummy(SpellEffIndex /*effIndex*/)