HandleMasterIncomingPacket coredump

This commit is contained in:
Yunfan Li
2023-08-27 00:04:25 +08:00
parent a7a1df89a1
commit 500332d69d

View File

@@ -1099,7 +1099,7 @@ void PlayerbotMgr::HandleMasterIncomingPacket(WorldPacket const& packet)
{
Player* const bot = it->second;
PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot);
if (botAI->GetMaster() == GetMaster())
if (botAI && botAI->GetMaster() == GetMaster())
botAI->HandleMasterIncomingPacket(packet);
}