From b7471f800cc2ff315c4794c72c4e90edff2c3069 Mon Sep 17 00:00:00 2001 From: Trazom62 Date: Wed, 2 Jun 2010 19:36:59 +0200 Subject: Fix crash in Unit::HandleProcTriggerSpell (Actually in Object::GetUInt32Value when pVictim is null). Fixes issue #2458. --HG-- branch : trunk --- src/game/Unit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 574ef8a50da..e072a0458e7 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8278,8 +8278,8 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig // Unyielding Knights (item exploit 29108\29109) case 38164: { - if (pVictim->GetEntry() != 19457) // Proc only if you target is Grillok - return false; + if (!pVictim || pVictim->GetEntry() != 19457) // Proc only if your target is Grillok + return false; break; } // Deflection -- cgit v1.2.3