Adding continue fix

This commit is contained in:
Dustin Hendrickson
2025-05-26 15:15:48 -07:00
parent 14e4519566
commit 283b73dfd9

View File

@@ -978,10 +978,9 @@ public:
Player* bot = safeBots.back(); Player* bot = safeBots.back();
if (!bot || !bot->IsInWorld()) if (!bot || !bot->IsInWorld())
{ {
it = safeBots.erase(it); safeBots.pop_back();
break; continue;
} }
safeBots.pop_back();
if (g_BotDistFullDebugMode) if (g_BotDistFullDebugMode)
{ {
LOG_INFO("server.loading", "[BotLevelBrackets] Alliance safe bot '{}' from range {} will be moved.", bot->GetName(), i + 1); LOG_INFO("server.loading", "[BotLevelBrackets] Alliance safe bot '{}' from range {} will be moved.", bot->GetName(), i + 1);
@@ -1048,8 +1047,8 @@ public:
Player* bot = flaggedBots.back(); Player* bot = flaggedBots.back();
if (!bot || !bot->IsInWorld()) if (!bot || !bot->IsInWorld())
{ {
it = flaggedBots.erase(it); flaggedBots.pop_back();
break; continue;
} }
flaggedBots.pop_back(); flaggedBots.pop_back();
if (g_BotDistFullDebugMode) if (g_BotDistFullDebugMode)
@@ -1156,8 +1155,8 @@ public:
Player* bot = safeBots.back(); Player* bot = safeBots.back();
if (!bot || !bot->IsInWorld()) if (!bot || !bot->IsInWorld())
{ {
it = safeBots.erase(it); safeBots.pop_back();
break; continue;
} }
safeBots.pop_back(); safeBots.pop_back();
if (g_BotDistFullDebugMode) if (g_BotDistFullDebugMode)
@@ -1226,8 +1225,8 @@ public:
Player* bot = flaggedBots.back(); Player* bot = flaggedBots.back();
if (!bot || !bot->IsInWorld()) if (!bot || !bot->IsInWorld())
{ {
it = flaggedBots.erase(it); flaggedBots.pop_back();
break; continue;
} }
flaggedBots.pop_back(); flaggedBots.pop_back();
if (g_BotDistFullDebugMode) if (g_BotDistFullDebugMode)