Fix @spec not targeting clients in unassigned team.

This commit is contained in:
BotoX
2019-10-20 12:28:44 +02:00
committed by BotoX
parent a0b8153f4b
commit 8ac0c18674
+1 -1
View File
@@ -484,7 +484,7 @@ bool SDKTools::ProcessCommandTarget(cmd_target_info_t *info)
IPlayerInfo *plinfo = player->GetPlayerInfo();
if (plinfo == NULL)
continue;
if (plinfo->GetTeamIndex() == 1 &&
if ((plinfo->GetTeamIndex() == 0 || plinfo->GetTeamIndex() == 1) &&
playerhelpers->FilterCommandTarget(pAdmin, player, info->flags) ==
COMMAND_TARGET_VALID)
{