From 105c70802ded53b49621a92ee8fa136e57d0c717 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 5 Jun 2021 12:37:30 +0200 Subject: Scripts/Commands: Fix crashes with ".group revive" and ".group repair" Close #26575 --- src/server/scripts/Commands/cs_group.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/server/scripts/Commands/cs_group.cpp b/src/server/scripts/Commands/cs_group.cpp index f9b36afb67e..056bac9df2f 100644 --- a/src/server/scripts/Commands/cs_group.cpp +++ b/src/server/scripts/Commands/cs_group.cpp @@ -118,8 +118,7 @@ public: static bool HandleGroupReviveCommand(ChatHandler* handler, char const* args) { Player* playerTarget; - ObjectGuid playerTargetGuid; - if (!handler->extractPlayerTarget((char*)args, &playerTarget, &playerTargetGuid)) + if (!handler->extractPlayerTarget((char*)args, &playerTarget)) return false; Group* groupTarget = playerTarget->GetGroup(); @@ -144,8 +143,7 @@ public: static bool HandleGroupRepairCommand(ChatHandler* handler, char const* args) { Player* playerTarget; - ObjectGuid playerTargetGuid; - if (!handler->extractPlayerTarget((char*)args, &playerTarget, &playerTargetGuid)) + if (!handler->extractPlayerTarget((char*)args, &playerTarget)) return false; Group* groupTarget = playerTarget->GetGroup(); -- cgit v1.2.3