mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-12 09:52:34 +00:00
[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:
parent
7090382074
commit
da5e672a28
@ -4590,9 +4590,8 @@ bool Bot::Death(Mob *killerMob, int64 damage, uint16 spell_id, EQ::skills::Skill
|
|||||||
GroupJoin_Struct* gu = (GroupJoin_Struct*) outapp->pBuffer;
|
GroupJoin_Struct* gu = (GroupJoin_Struct*) outapp->pBuffer;
|
||||||
gu->action = groupActLeave;
|
gu->action = groupActLeave;
|
||||||
strcpy(gu->membername, GetCleanName());
|
strcpy(gu->membername, GetCleanName());
|
||||||
if (g) {
|
|
||||||
for (int k = 0; k < MAX_GROUP_MEMBERS; k++) {
|
for (int k = 0; k < MAX_GROUP_MEMBERS; k++) {
|
||||||
if (g->members[k] && g->members[k]->IsClient())
|
if (g->members[k] && g->members[k]->IsClient()) {
|
||||||
g->members[k]->CastToClient()->QueuePacket(outapp);
|
g->members[k]->CastToClient()->QueuePacket(outapp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user