[Cleanup] Remove unnecessary group validation in Bot::Death() (#3235)

# Note
- We already break if there is no group above, revalidation is unnecessary.
This commit is contained in:
Alex King 2023-04-03 17:15:09 -04:00 committed by GitHub
parent 7090382074
commit da5e672a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4590,10 +4590,9 @@ bool Bot::Death(Mob *killerMob, int64 damage, uint16 spell_id, EQ::skills::Skill
GroupJoin_Struct* gu = (GroupJoin_Struct*) outapp->pBuffer;
gu->action = groupActLeave;
strcpy(gu->membername, GetCleanName());
if (g) {
for (int k = 0; k < MAX_GROUP_MEMBERS; k++) {
if (g->members[k] && g->members[k]->IsClient())
g->members[k]->CastToClient()->QueuePacket(outapp);
for (int k = 0; k < MAX_GROUP_MEMBERS; k++) {
if (g->members[k] && g->members[k]->IsClient()) {
g->members[k]->CastToClient()->QueuePacket(outapp);
}
}
safe_delete(outapp);