From f46a9788bec4f35d3c9222b43fdb551009bb885e Mon Sep 17 00:00:00 2001 From: mostlikely4r Date: Wed, 13 Nov 2024 12:10:32 +0100 Subject: [PATCH] Always bot: Stop trying to log in always bots when enabled on for a real player. --- playerbot/RandomPlayerbotMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playerbot/RandomPlayerbotMgr.cpp b/playerbot/RandomPlayerbotMgr.cpp index b677531f..b9c93dfd 100644 --- a/playerbot/RandomPlayerbotMgr.cpp +++ b/playerbot/RandomPlayerbotMgr.cpp @@ -759,7 +759,7 @@ void RandomPlayerbotMgr::LoginFreeBots() { for (auto bot : sPlayerbotAIConfig.freeAltBots) { - Player* player = GetPlayerBot(bot.second); + Player* player = sObjectMgr.GetPlayer(ObjectGuid(HIGHGUID_PLAYER,bot.second) , false); PlayerbotAI* ai = player ? player->GetPlayerbotAI() : NULL;