diff --git a/src/PlayerbotMgr.cpp b/src/PlayerbotMgr.cpp index 2681f861..eb6d8206 100644 --- a/src/PlayerbotMgr.cpp +++ b/src/PlayerbotMgr.cpp @@ -1132,7 +1132,7 @@ void PlayerbotMgr::HandleMasterOutgoingPacket(WorldPacket const& packet) { Player* const bot = it->second; PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot); - if (botAI->GetMaster() == GetMaster()) + if (botAI && botAI->GetMaster() == GetMaster()) botAI->HandleMasterOutgoingPacket(packet); } }