Skip to content

Commit

Permalink
NPCBots: Fix a regression from previous commit
Browse files Browse the repository at this point in the history
(cherry picked from commit 5484688c7b94e26f1c4eeb4e1fb01fb5bc7f2e00)
  • Loading branch information
trickerer committed Dec 2, 2024
1 parent cde4081 commit f588a09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/game/AI/NpcBots/botmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f588a09

Please sign in to comment.