diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index 750f9ab0..642b0fa2 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -1350,6 +1350,9 @@ uint32 RandomPlayerbotMgr::GetZoneLevel(uint16 mapId, float teleX, float teleY, void RandomPlayerbotMgr::Refresh(Player* bot) { PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot); + if (!botAI) + return; + if (bot->isDead()) { bot->ResurrectPlayer(1.0f);