fix (Core/Wintergrasp) Icon now disappears when player leaves queue (#21619)

Co-authored-by: Hexadecimal <hd@hd.hd>
This commit is contained in:
p-tkachuk
2025-03-01 21:51:46 +01:00
committed by GitHub
parent 3834bac43d
commit 9a6078a262

View File

@@ -403,6 +403,8 @@ void Battlefield::AskToLeaveQueue(Player* player)
{
// Remove player from queue
m_PlayersInQueue[player->GetTeamId()].erase(player->GetGUID());
// Send notification
player->GetSession()->SendBfLeaveMessage(m_BattleId, BF_LEAVE_REASON_CLOSE);
}
// Called in WorldSession::HandleHearthAndResurrect