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 Nov 14, 2024
1 parent e402036 commit ab4ca50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/BattleGround/BattleGroundQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,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 @@ -892,6 +893,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

0 comments on commit ab4ca50

Please sign in to comment.