Skip to content

Commit

Permalink
NPCBots: Fix player's bots not being properly removed from BG when le…
Browse files Browse the repository at this point in the history
…aving BG with player(s) left
  • Loading branch information
trickerer committed May 24, 2024
1 parent 86c6c26 commit c4cd4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Battlegrounds/Battleground.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ void Battleground::RemovePlayerAtLeave(ObjectGuid guid, bool Transport, bool Sen
{
BotMap const* map = player->GetBotMgr()->GetBotMap();
for (BotMap::const_iterator itr = map->begin(); itr != map->end(); ++itr)
RemovePlayerAtLeave(itr->first, Transport, SendPacket);
RemoveBotAtLeave(itr->first);
}
//end npcbot
}
Expand Down

0 comments on commit c4cd4ef

Please sign in to comment.