Merge pull request #145 from hermensbas/fixes/delta_cleanup_correction

[HOT FIX] Cleanup corrections (mistakes make during cleanup)
This commit is contained in:
bashermens
2026-01-11 21:23:51 +01:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

@@ -482,6 +482,8 @@ void WorldSession::HandlePetitionSignOpcode(WorldPacket& recvData)
break;
}
sScriptMgr->OnPlayerbotCheckPetitionAccount(_player, found);
if (found)
{
WorldPacket data(SMSG_PETITION_SIGN_RESULTS, (8 + 8 + 4));

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