From b4aca8dd06db5a073ff8a1821f46fc10235273fe Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 5 Dec 2007 18:12:25 +0000 Subject: [PATCH] fixed @aim giving wrong name in ProcessTargetString() feedback --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401773 --- extensions/sdktools/extension.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/extensions/sdktools/extension.cpp b/extensions/sdktools/extension.cpp index 3a8d7450..e41a165d 100644 --- a/extensions/sdktools/extension.cpp +++ b/extensions/sdktools/extension.cpp @@ -303,7 +303,14 @@ bool SDKTools::ProcessCommandTarget(cmd_target_info_t *info) return true; } - IGamePlayer *pTarget = playerhelpers->GetGamePlayer(info->admin); + IGamePlayer *pTarget = playerhelpers->GetGamePlayer(player_index); + + if (pTarget == NULL) + { + info->reason = COMMAND_TARGET_NONE; + info->num_targets = 0; + return true; + } info->reason = playerhelpers->FilterCommandTarget(pAdmin, pTarget, info->flags); if (info->reason != COMMAND_TARGET_VALID)