From 4b83a96f6427fd099f9fcb5d38dace0578fb335f Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Wed, 13 Mar 2024 20:27:38 -0400 Subject: [PATCH] [Bug Fix] Fix Empty Groups When Removing Bots (#4178) # Notes - We were checking for the incorrect value, meaning you could end up in an empty group. --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 6f0a6032c..9a68f843f 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -3633,7 +3633,7 @@ bool Bot::RemoveBotFromGroup(Bot* bot, Group* group) { if (group->DelMember(bot)) { group->DelMemberOOZ(bot->GetName()); database.SetGroupID(bot->GetCleanName(), 0, bot->GetBotID()); - if (group->GroupCount() < 1) { + if (group->GroupCount() < 2) { group->DisbandGroup(); } }