Initialize battleground difficulty before initializing it (thanks to kapate for the heads up)

--HG--
branch : trunk
This commit is contained in:
click
2010-06-25 21:28:39 +02:00
parent 06cd5563b6
commit 07ede97b93
@@ -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);