Merge branch 'master' into login-range

This commit is contained in:
NoxMax
2025-08-26 22:50:29 -06:00
committed by GitHub
31 changed files with 2420 additions and 207 deletions

View File

@@ -405,10 +405,6 @@ public:
void OnPlayerbotLogout(Player* player) override
{
// immediate purge of the bot's AI upon disconnection
if (player && player->GetSession()->IsBot())
sPlayerbotsMgr->RemovePlayerbotAI(player->GetGUID()); // removes a long-standing crash (0xC0000005 ACCESS_VIOLATION)
if (PlayerbotMgr* playerbotMgr = GET_PLAYERBOT_MGR(player))
{
PlayerbotAI* botAI = GET_PLAYERBOT_AI(player);