mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-27 16:42:18 +00:00
[Crash] Add Checks for valid pointers or fix existing. (#3164)
This commit is contained in:
1 parent
4c2271ff69
commit
0d509a7f3a
19 files changed
+228
-179
No files matched your search
@@ -11775,13 +11775,13 @@ void Client::Handle_OP_RaidCommand(const EQApplicationPacket* app)
|
||||
Bot* player_to_invite = nullptr;
|
||||
|
||||
if (RuleB(Bots, Enabled) && entity_list.GetBotByBotName(raid_command_packet->player_name)) {
|
||||
Bot* player_to_invite = entity_list.GetBotByBotName(raid_command_packet->player_name);
|
||||
Group* player_to_invite_group = player_to_invite->GetGroup();
|
||||
|
||||
if (!player_to_invite) {
|
||||
break;
|
||||
}
|
||||
|
||||
Bot* player_to_invite = entity_list.GetBotByBotName(raid_command_packet->player_name);
|
||||
Group* player_to_invite_group = player_to_invite->GetGroup();
|
||||
|
||||
if (player_to_invite_group && player_to_invite_group->IsGroupMember(this)) {
|
||||
MessageString(Chat::Red, ALREADY_IN_PARTY);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user