diff --git a/src/server/game/AI/NpcBots/botmgr.cpp b/src/server/game/AI/NpcBots/botmgr.cpp index 728d360567516..ddd38c239e529 100644 --- a/src/server/game/AI/NpcBots/botmgr.cpp +++ b/src/server/game/AI/NpcBots/botmgr.cpp @@ -1698,7 +1698,8 @@ void BotMgr::_teleportBot(Creature* bot, Map* newMap, float x, float y, float z, if (newMap != mymap) { //we teleport from base non-instanced map which normally doesn't exist - ASSERT(mymap->GetPlayersCountExceptGMs() == 0); + if (mymap) + ASSERT(mymap->GetPlayersCountExceptGMs() == 0); bg->AddBot(bot); }