mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-25 10:28:23 +00:00
[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.
This commit is contained in:
+1
-1
@@ -3633,7 +3633,7 @@ bool Bot::RemoveBotFromGroup(Bot* bot, Group* group) {
|
|||||||
if (group->DelMember(bot)) {
|
if (group->DelMember(bot)) {
|
||||||
group->DelMemberOOZ(bot->GetName());
|
group->DelMemberOOZ(bot->GetName());
|
||||||
database.SetGroupID(bot->GetCleanName(), 0, bot->GetBotID());
|
database.SetGroupID(bot->GetCleanName(), 0, bot->GetBotID());
|
||||||
if (group->GroupCount() < 1) {
|
if (group->GroupCount() < 2) {
|
||||||
group->DisbandGroup();
|
group->DisbandGroup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user