Fix crash in Unit::HandleProcTriggerSpell (Actually in Object::GetUInt32Value when pVictim is null).

Fixes issue #2458.

--HG--
branch : trunk
This commit is contained in:
Trazom62
2010-06-02 19:36:59 +02:00
parent b1bf3b5e13
commit b7471f800c
+2 -2
View File
@@ -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