From c93bf38463727abfc0ed29766377cd71ecb8c239 Mon Sep 17 00:00:00 2001 From: kadeshar Date: Mon, 17 Mar 2025 08:47:48 +0100 Subject: [PATCH] - Fixed checking MaxAddedBots (#1083) --- src/PlayerbotMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlayerbotMgr.cpp b/src/PlayerbotMgr.cpp index 118a38ed..ba3aceae 100644 --- a/src/PlayerbotMgr.cpp +++ b/src/PlayerbotMgr.cpp @@ -91,7 +91,7 @@ void PlayerbotHolder::AddPlayerBot(ObjectGuid playerGuid, uint32 masterAccountId LOG_DEBUG("playerbots", "PlayerbotMgr not found for master player with GUID: {}", masterPlayer->GetGUID().GetRawValue()); return; } - uint32 count = mgr->GetPlayerbotsCount(); + uint32 count = mgr->GetPlayerbotsCount() + botLoading.size(); if (count >= sPlayerbotAIConfig->maxAddedBots) { allowed = false;