Scripts/Commands: Fix crashes with ".group revive" and ".group repair"
Port From (https://github.com/TrinityCore/TrinityCore/commit/9a17ac108c3a6318d96bd3944cb96e4e9241e7a2)
This commit is contained in:
@@ -302,8 +302,7 @@ namespace Game.Chat
|
||||
static bool HandleGroupRepairCommand(CommandHandler handler, StringArguments args)
|
||||
{
|
||||
Player playerTarget;
|
||||
ObjectGuid playerTargetGuid;
|
||||
if (!handler.ExtractPlayerTarget(args, out playerTarget, out playerTargetGuid))
|
||||
if (!handler.ExtractPlayerTarget(args, out playerTarget))
|
||||
return false;
|
||||
|
||||
Group groupTarget = playerTarget.GetGroup();
|
||||
@@ -324,8 +323,7 @@ namespace Game.Chat
|
||||
static bool HandleGroupReviveCommand(CommandHandler handler, StringArguments args)
|
||||
{
|
||||
Player playerTarget;
|
||||
ObjectGuid playerTargetGuid;
|
||||
if (!handler.ExtractPlayerTarget(args, out playerTarget, out playerTargetGuid))
|
||||
if (!handler.ExtractPlayerTarget(args, out playerTarget))
|
||||
return false;
|
||||
|
||||
Group groupTarget = playerTarget.GetGroup();
|
||||
|
||||
Reference in New Issue
Block a user