zr: fix minor bug

This commit is contained in:
dogan 2020-08-30 20:39:42 +02:00 committed by zaCade
parent 3a1e34e887
commit 074c3e69f4

View File

@ -301,7 +301,7 @@ stock bool:ZRCountValidClients(&zombiecount = 0, &humancount = 0, bool:alive = t
stock bool:ZRIsClientOnTeam(client, team = -1)
{
// If index is invalid, then stop.
if (!ZRIsClientValid(client))
if (!ZRIsClientValid(client) || !IsClientInGame(client))
{
return false;
}