mirror of
https://github.com/kadeshar/mod-player-bot-level-brackets.git
synced 2026-01-13 01:08:36 +00:00
Adding continue fix
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user