From 284b0063a8b5e49ade31900c92219fe62c13c572 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 13 Aug 2009 10:01:00 -0500 Subject: *A hacky fix of the crash happening when player is teleported during logout. --HG-- branch : trunk --- .../zone/aunchindoun/mana_tombs/boss_nexusprince_shaffar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bindings/scripts') diff --git a/src/bindings/scripts/scripts/zone/aunchindoun/mana_tombs/boss_nexusprince_shaffar.cpp b/src/bindings/scripts/scripts/zone/aunchindoun/mana_tombs/boss_nexusprince_shaffar.cpp index 45892af7401..f72cf9fc5ce 100644 --- a/src/bindings/scripts/scripts/zone/aunchindoun/mana_tombs/boss_nexusprince_shaffar.cpp +++ b/src/bindings/scripts/scripts/zone/aunchindoun/mana_tombs/boss_nexusprince_shaffar.cpp @@ -282,9 +282,9 @@ struct TRINITY_DLL_DECL mob_ethereal_beaconAI : public ScriptedAI void JustDied(Unit* Killer) { - Unit *Shaffar = me->FindNearestCreature(NPC_SHAFFAR, 100); + Creature *Shaffar = me->FindNearestCreature(NPC_SHAFFAR, 100); if(Shaffar) - CAST_AI(boss_nexusprince_shaffarAI, (CAST_CRE(Shaffar)->AI()))->RemoveBeaconFromList(m_creature); + CAST_AI(boss_nexusprince_shaffarAI, Shaffar->AI())->RemoveBeaconFromList(m_creature); } void UpdateAI(const uint32 diff) @@ -294,7 +294,7 @@ struct TRINITY_DLL_DECL mob_ethereal_beaconAI : public ScriptedAI if(Check_Timer < diff) { - Unit *Shaffar = me->FindNearestCreature(NPC_SHAFFAR, 100); + Creature *Shaffar = me->FindNearestCreature(NPC_SHAFFAR, 100); if(!Shaffar || Shaffar->isDead() || !Shaffar->isInCombat()) { KillSelf(); -- cgit v1.2.3