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;