mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/Commands: Fix crashes with ".group revive" and ".group repair"
Close #26575
(cherry picked from commit 105c70802d)
This commit is contained in:
@@ -120,8 +120,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();
|
||||
@@ -146,8 +145,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();
|
||||
|
||||
Reference in New Issue
Block a user