aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2011-05-29 14:08:54 +0200
committerShauren <shauren.trinity@gmail.com>2011-05-29 14:08:54 +0200
commit1d8b298d8e30ea95b39d013103172ba45678b230 (patch)
treef12d94fd77a92e6b3220fbfbe02873cae0d2ff51 /src
parent27246db7d5fca0a0559609a4f5c8c30fe194d064 (diff)
Scripts/Gundrak: Bridge fix
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;