From 500332d69d5055b1977fddc73b48e2990ac995bb Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 27 Aug 2023 00:04:25 +0800 Subject: [PATCH] HandleMasterIncomingPacket coredump --- src/PlayerbotMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }