From 25726f54b17250e5c107be47a201886be80faccb Mon Sep 17 00:00:00 2001 From: NoxMax <50133316+NoxMax@users.noreply.github.com> Date: Wed, 1 Oct 2025 13:16:00 +0800 Subject: [PATCH] Update RandomPlayerbotMgr.cpp --- src/RandomPlayerbotMgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index 978896ec..c8542e7b 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include "AccountMgr.h" #include "AiFactory.h" @@ -426,7 +427,7 @@ void RandomPlayerbotMgr::UpdateAIInternal(uint32 elapsed, bool /*minimal*/) { LOG_ERROR("playerbots", "No eligible bots found with level filter {}-{}. Change the level range.", sPlayerbotAIConfig->randomBotMinLoginLevel, sPlayerbotAIConfig->randomBotMaxLoginLevel); - SetEventValue(0, "bot_count", 0, 999999999); + SetEventValue(0, "bot_count", 0, INT_MAX); maxAllowedBotCount = 0; currentBots.clear(); levelFilterAdjusted = true;