zr: fix minor bug
This commit is contained in:
parent
3a1e34e887
commit
074c3e69f4
@ -301,7 +301,7 @@ stock bool:ZRCountValidClients(&zombiecount = 0, &humancount = 0, bool:alive = t
|
|||||||
stock bool:ZRIsClientOnTeam(client, team = -1)
|
stock bool:ZRIsClientOnTeam(client, team = -1)
|
||||||
{
|
{
|
||||||
// If index is invalid, then stop.
|
// If index is invalid, then stop.
|
||||||
if (!ZRIsClientValid(client))
|
if (!ZRIsClientValid(client) || !IsClientInGame(client))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user