fixed crash issue is creatures are summoned outside of the instance
This commit is contained in:
@@ -203,8 +203,11 @@ public:
|
|||||||
summons.DespawnAll();
|
summons.DespawnAll();
|
||||||
Talk(SAY_DEATH);
|
Talk(SAY_DEATH);
|
||||||
|
|
||||||
if (GameObject* go = me->GetMap()->GetGameObject(pInstance->GetData64(DATA_KELTHUZAD_GATE)))
|
if (pInstance)
|
||||||
go->SetGoState(GO_STATE_ACTIVE);
|
{
|
||||||
|
if (GameObject* go = me->GetMap()->GetGameObject(pInstance->GetData64(DATA_KELTHUZAD_GATE)))
|
||||||
|
go->SetGoState(GO_STATE_ACTIVE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MoveInLineOfSight(Unit* who)
|
void MoveInLineOfSight(Unit* who)
|
||||||
|
|||||||
@@ -80,8 +80,12 @@ public:
|
|||||||
BossAI::Reset();
|
BossAI::Reset();
|
||||||
events.Reset();
|
events.Reset();
|
||||||
summons.DespawnAll();
|
summons.DespawnAll();
|
||||||
if (GameObject* go = me->GetMap()->GetGameObject(pInstance->GetData64(DATA_MAEXXNA_GATE)))
|
|
||||||
go->SetGoState(GO_STATE_ACTIVE);
|
if (pInstance)
|
||||||
|
{
|
||||||
|
if (GameObject* go = me->GetMap()->GetGameObject(pInstance->GetData64(DATA_MAEXXNA_GATE)))
|
||||||
|
go->SetGoState(GO_STATE_ACTIVE);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user