mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user