aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/Gundrak/instance_gundrak.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/scripts/Northrend/Gundrak/instance_gundrak.cpp b/src/server/scripts/Northrend/Gundrak/instance_gundrak.cpp
index 2a4bdc45239..e21b3ee5e10 100644
--- a/src/server/scripts/Northrend/Gundrak/instance_gundrak.cpp
+++ b/src/server/scripts/Northrend/Gundrak/instance_gundrak.cpp
@@ -443,6 +443,8 @@ public:
GameObject* pDrakkariColossusStatue = instance->GetGameObject(uiDrakkariColossusStatue);
GameObject* pGalDarahStatue = instance->GetGameObject(uiGalDarahStatue);
+ toActivate = 0;
+
if (pBridge && pCollision && pSladRanStatue && pMoorabiStatue && pDrakkariColossusStatue && pGalDarahStatue)
{
pBridge->SetGoState(GO_STATE_ACTIVE_ALTERNATIVE);
@@ -490,12 +492,13 @@ public:
if (GameObject* statueGO = instance->GetGameObject(toActivate))
statueGO->SetGoState(GO_STATE_READY);
+ toActivate = 0;
+
if (phase == 3)
SetData64(DATA_STATUE_ACTIVATE, uiBridge);
else
SaveToDB(); // Don't save in between last statue and bridge turning in case of crash leading to stuck instance
}
- toActivate = 0;
}
else
timer -= diff;