fixed error in Spectate plugin

This commit is contained in:
BotoX 2016-05-10 23:05:52 +02:00
parent cc53433e1b
commit f632418de8

View File

@ -77,7 +77,7 @@ public Action Command_Spectate(int client, int argc)
GetCmdArg(1, sTarget, sizeof(sTarget));
int iTarget;
if (!(iTarget = FindTarget(client, sTarget, false, false)))
if ((iTarget = FindTarget(client, sTarget, false, false)) <= 0)
return Plugin_Handled;
if (!IsPlayerAlive(iTarget))