aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrazom62 <none@none>2010-06-02 19:36:59 +0200
committerTrazom62 <none@none>2010-06-02 19:36:59 +0200
commitb7471f800cc2ff315c4794c72c4e90edff2c3069 (patch)
tree030e86ce261afd2081b3af12c9641c250d37e644
parentb1bf3b5e13c02e8f895381b6d79c15a46f6c9bc2 (diff)
Fix crash in Unit::HandleProcTriggerSpell (Actually in Object::GetUInt32Value when pVictim is null).
Fixes issue #2458. --HG-- branch : trunk
-rw-r--r--src/game/Unit.cpp4
1 files 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