Fix for clients not dropping group after camping bots

This commit is contained in:
Uleat
2019-08-24 21:54:46 -04:00
parent 5e60fcdc0c
commit 377c569635
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -3952,6 +3952,9 @@ void Client::Handle_OP_Camp(const EQApplicationPacket *app)
#ifdef BOTS
// This block is necessary to clean up any bot objects owned by a Client
Bot::BotOrderCampAll(this);
auto group = GetGroup();
if (group && group->GroupCount() < 2)
group->DisbandGroup();
#endif
if (IsLFP())
worldserver.StopLFP(CharacterID());