Fix zone crash when a group member raid invites own group leader

This commit is contained in:
hg
2020-01-28 19:04:47 -05:00
parent c82d08cf11
commit 43da07fb55
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -11130,6 +11130,11 @@ void Client::Handle_OP_RaidCommand(const EQApplicationPacket *app)
break;
}
if (player_to_invite_group && player_to_invite_group->IsGroupMember(this)) {
MessageString(Chat::Red, ALREADY_IN_PARTY);
break;
}
if (player_to_invite_group && !player_to_invite_group->IsLeader(player_to_invite)) {
Message(Chat::Red, "You can only invite an ungrouped player or group leader to join your raid.");
break;