Skip to content

Commit

Permalink
BG: Properly initialize bracketid when using bg template
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r authored and killerwife committed Oct 10, 2024
1 parent f0e5bdc commit 1605ff0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/BattleGround/BattleGroundQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,7 @@ void BattleGroundQueueItem::Update(BattleGroundQueue& queue, BattleGroundTypeId

BattleGroundInQueueInfo bgInfo;
bgInfo.Fill(bgTemplate);
bgInfo.bracketId = bracketId;
bgInfo.instanceId = sMapMgr.GenerateInstanceId();
bgInfo.m_clientInstanceId = queue.CreateClientVisibleInstanceId(bgTypeId, bracketId);

Expand Down Expand Up @@ -1007,6 +1008,7 @@ void BattleGroundQueueItem::Update(BattleGroundQueue& queue, BattleGroundTypeId

BattleGroundInQueueInfo bgInfo;
bgInfo.Fill(bgTemplate);
bgInfo.bracketId = bracketId;
bgInfo.instanceId = sMapMgr.GenerateInstanceId();
bgInfo.m_clientInstanceId = queue.CreateClientVisibleInstanceId(bgTypeId, bracketId);

Expand Down Expand Up @@ -1141,6 +1143,7 @@ void BattleGroundQueueItem::Update(BattleGroundQueue& queue, BattleGroundTypeId

BattleGroundInQueueInfo bgInfo;
bgInfo.Fill(bgTemplate);
bgInfo.bracketId = bracketId;
bgInfo.instanceId = sMapMgr.GenerateInstanceId();
bgInfo.m_clientInstanceId = queue.CreateClientVisibleInstanceId(bgTypeId, bracketId);
bgInfo.isRated = true;
Expand Down

0 comments on commit 1605ff0

Please sign in to comment.