corrections

This commit is contained in:
bash
2026-01-11 20:49:54 +01:00
parent 43f496d372
commit d81355460f
2 changed files with 9 additions and 0 deletions

View File

@@ -1722,6 +1722,13 @@ 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)
{
if (!sScriptMgr->OnPlayerbotCheckUpdatesToSend(iter->first))
{
iter->second.Clear();
continue;
}
iter->second.BuildPacket(packet);
iter->first->SendDirectMessage(&packet);
packet.clear(); // clean the string