mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Crash] Fix crash where Raid invite could be accepted after forming group with the Raid invitor. (#3837)
* [Crash] Fix a crash where a raid invite could be accepted affter joining a group with the invitor. * [Crash] Fix a crash where a raid invite could be accepted after joining a group with the invitor.
This commit is contained in:
@@ -12053,6 +12053,13 @@ void Client::Handle_OP_RaidCommand(const EQApplicationPacket* app)
|
||||
{
|
||||
auto player_sending_invite_group = player_sending_invite->GetGroup();
|
||||
Group* group = GetGroup();
|
||||
|
||||
/* Prevent scenario where player had joined group with Raid invitor before accepting Raid invite */
|
||||
if (group && group == player_sending_invite_group) {
|
||||
player_sending_invite->MessageString(Chat::Red, INVITE_GROUP_LEADER);
|
||||
return;
|
||||
}
|
||||
|
||||
if (group) //if our target has a group
|
||||
{
|
||||
raid = new Raid(player_sending_invite);
|
||||
|
||||
Reference in New Issue
Block a user