diff --git a/src/server/game/AI/NpcBots/botmgr.cpp b/src/server/game/AI/NpcBots/botmgr.cpp index 69a462ef542b10..496765f9650fe7 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); }