[Crash] Add additional raid integrity checks on Bot Spawn. (#3295)

* simple cleanup before changes

* can't be in a raid yet

* change to sizeof

* change to use sizeof
This commit is contained in:
Aeadoin
2023-04-16 10:06:19 -04:00
committed by GitHub
parent d45a57056a
commit 93db35658a
3 changed files with 22 additions and 25 deletions
+1 -1
View File
@@ -6999,7 +6999,7 @@ void Client::Handle_OP_GroupDisband(const EQApplicationPacket *app)
//we have a raid.. see if we're in a raid group
uint32 grp = raid->GetGroup(memberToDisband->GetName());
bool wasGrpLdr = raid->members[raid->GetPlayerIndex(memberToDisband->GetName())].is_group_leader;
if (grp < 12) {
if (grp < MAX_RAID_GROUPS) {
if (wasGrpLdr) {
raid->SetGroupLeader(memberToDisband->GetName(), false);
for (int x = 0; x < MAX_RAID_MEMBERS; x++) {