aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorclick <none@none>2010-06-25 21:28:39 +0200
committerclick <none@none>2010-06-25 21:28:39 +0200
commit07ede97b93d1d7abd3292a911f5dcb778437eaf3 (patch)
tree4802b66aa3b5988b6da846acbcb7a3596078e969 /src
parent06cd5563b6d756a0ef774864e5bfebfe69fb2594 (diff)
Initialize battleground difficulty before initializing it (thanks to kapate for the heads up)
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/game/BattleGrounds/BattleGroundMgr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/BattleGrounds/BattleGroundMgr.cpp b/src/server/game/BattleGrounds/BattleGroundMgr.cpp
index b814c9b810e..d930a4185bc 100644
--- a/src/server/game/BattleGrounds/BattleGroundMgr.cpp
+++ b/src/server/game/BattleGrounds/BattleGroundMgr.cpp
@@ -1627,6 +1627,9 @@ BattleGround * BattleGroundMgr::CreateNewBattleGround(BattleGroundTypeId bgTypeI
return 0;
}
+ // set battelground difficulty before initialization
+ bg->SetBracket(bracketEntry);
+
// generate a new instance id
bg->SetInstanceID(sMapMgr.GenerateInstanceId()); // set instance id
bg->SetClientInstanceID(CreateClientVisibleInstanceId(isRandom ? BATTLEGROUND_RB : bgTypeId, bracketEntry->GetBracketId()));
@@ -1636,7 +1639,6 @@ BattleGround * BattleGroundMgr::CreateNewBattleGround(BattleGroundTypeId bgTypeI
// start the joining of the bg
bg->SetStatus(STATUS_WAIT_JOIN);
- bg->SetBracket(bracketEntry);
bg->SetArenaType(arenaType);
bg->SetRated(isRated);
bg->SetRandom(isRandom);