Skip to content

Commit

Permalink
Finish reworking bg handler code
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Oct 5, 2024
1 parent b04cf9a commit 697e202
Show file tree
Hide file tree
Showing 5 changed files with 344 additions and 236 deletions.
4 changes: 2 additions & 2 deletions src/game/BattleGround/BattleGround.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1529,9 +1529,9 @@ void BattleGround::RemovedFromBgFreeSlotQueue(bool removeFromQueue)
// set to be able to re-add if needed
if (m_hasBgFreeSlotQueue && removeFromQueue)
{
sWorld.GetBGQueue().GetMessager().AddMessage([instanceId = GetInstanceId()](BattleGroundQueue* queue)
sWorld.GetBGQueue().GetMessager().AddMessage([bgTypeId = GetTypeId(), instanceId = GetInstanceId()](BattleGroundQueue* queue)
{
queue->RemoveBgFromFreeSlots(instanceId);
queue->RemoveBgFromFreeSlots(bgTypeId, instanceId);
});
}
m_hasBgFreeSlotQueue = false;
Expand Down
Loading

0 comments on commit 697e202

Please sign in to comment.