Fix typo and possible crash.
Patch by trazom.

In previous patch i forgot to mention about Azazel, sorry and thx for patch

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-11-27 05:12:38 +01:00
parent fef51c65bf
commit 710a87128c
@@ -61,10 +61,11 @@ struct TRINITY_DLL_DECL boss_nerubenkanAI : public ScriptedAI
pInstance->SetData(TYPE_NERUB,IN_PROGRESS); pInstance->SetData(TYPE_NERUB,IN_PROGRESS);
} }
void RaiseUndeadScarab(Unit* victim) void RaiseUndeadScarab(Unit* pVictim)
{ {
if (Creature *UndeadScarab = DoSpawnCreature(10876, RAND(irand(0,-9),irand(0,9)), RAND(irand(0,-9),irand(0,9)), 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 180000)) if (Creature* pUndeadScarab = DoSpawnCreature(10876, RAND(irand(-9,0),irand(0,9)), RAND(irand(-9,0),irand(0,9)), 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 180000))
UndeadScarab->AI()->AttackStart(victim); if (pUndeadScarab->AI())
pUndeadScarab->AI()->AttackStart(pVictim);
} }
void UpdateAI(const uint32 diff) void UpdateAI(const uint32 diff)