Skip to content

Commit

Permalink
NPCBots: Fix a regression from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
trickerer committed Dec 2, 2024
1 parent 0d4562a commit 5484688
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 5484688

Please sign in to comment.