diff --git a/src/PlayerbotMgr.cpp b/src/PlayerbotMgr.cpp index eb6d8206..77583796 100644 --- a/src/PlayerbotMgr.cpp +++ b/src/PlayerbotMgr.cpp @@ -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); }