From 17ac4f93319e7bcb4a509ad873cb7daabe39806d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 3 Jul 2007 20:22:39 +0000 Subject: [PATCH] fixed amb522 --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401041 --- core/smn_player.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/smn_player.cpp b/core/smn_player.cpp index 43bfdc98..5580bf33 100644 --- a/core/smn_player.cpp +++ b/core/smn_player.cpp @@ -379,6 +379,11 @@ static cell_t CanUserTarget(IPluginContext *pContext, const cell_t *params) int client = params[1]; int target = params[2]; + if (client == 0) + { + return 1; + } + CPlayer *pPlayer = g_Players.GetPlayerByIndex(client); if (!pPlayer) {