[Bug Fix] Fix for OOZ Group updates when removing/inviting Bots (#3159)

* [Bug Fix] Fix for Cross Zone Group updates with Bots when disbanding/joining groups.

* check for nullptr
This commit is contained in:
Aeadoin
2023-03-30 08:31:50 -04:00
committed by GitHub
parent 6960a1a682
commit e4ff76dceb
4 changed files with 21 additions and 8 deletions
+2 -2
View File
@@ -4162,7 +4162,7 @@ bool Client::GroupFollow(Client* inviter) {
if (iraid == raid) {
//both in same raid
uint32 ngid = raid->GetGroup(inviter->GetName());
if (raid->GroupCount(ngid) < 6) {
if (raid->GroupCount(ngid) < MAX_GROUP_MEMBERS) {
raid->MoveMember(GetName(), ngid);
raid->SendGroupDisband(this);
raid->GroupUpdate(ngid);
@@ -4183,7 +4183,7 @@ bool Client::GroupFollow(Client* inviter) {
if (!GetXTargetAutoMgr()->empty())
SetDirtyAutoHaters();
if (raid->GroupCount(groupToUse) < 6)
if (raid->GroupCount(groupToUse) < MAX_GROUP_MEMBERS)
{
raid->SendRaidCreate(this);
raid->SendMakeLeaderPacketTo(raid->leadername, this);