From 1650efa7874f83304aa5f5b2410c33096b9c2bb8 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Thu, 6 Feb 2025 03:40:09 -0600 Subject: [PATCH] [Bots] Correct camp count on ^camp (#4650) * Correct camp count on ^camp * Update bot.cpp --------- Co-authored-by: Alex King <89047260+Kinglykrab@users.noreply.github.com> --- zone/bot_commands/bot.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/zone/bot_commands/bot.cpp b/zone/bot_commands/bot.cpp index 4c22dd379..c779aec88 100644 --- a/zone/bot_commands/bot.cpp +++ b/zone/bot_commands/bot.cpp @@ -56,15 +56,12 @@ void bot_command_camp(Client *c, const Seperator *sep) return; } - uint16 camp_count; - for (auto bot_iter : sbl) { bot_iter->Camp(); - ++camp_count; } - if (camp_count) { - c->Message(Chat::White, "%i of your bots have been camped.", camp_count); + if (!sbl.empty()) { + c->Message(Chat::White, fmt::format("{} of your bots have been camped.", sbl.size()).c_str()); } }