Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/game/WorldHandlers/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2174,6 +2174,11 @@ void Map::SendObjectUpdates()
WorldPacket packet; // here we allocate a std::vector with a size of 0x10000
for (UpdateDataMapType::iterator iter = update_players.begin(); iter != update_players.end(); ++iter)
{
#ifdef ENABLE_PLAYERBOTS
// Don't waste CPU building packets for bots - they have no network client
if (iter->first->GetPlayerbotAI())
continue;
#endif
iter->second.BuildPacket(&packet);
iter->first->GetSession()->SendPacket(&packet);
packet.clear(); // clean the string
Expand Down