Skip to content

Commit

Permalink
Add another valid check for #389
Browse files Browse the repository at this point in the history
  • Loading branch information
Bara committed Nov 28, 2018
1 parent 5821e51 commit 7a6eb0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/ttt/ttt_spec_menu.sp
Expand Up @@ -463,7 +463,7 @@ stock int GetNextClient(int client, bool nextClient = true)
return -1;
}

while (iClient == -1 && !TTT_IsPlayerAlive(iClient) && !bCheck[iClient])
while (!TTT_IsClientValid(iClient) && !TTT_IsPlayerAlive(iClient) && !bCheck[iClient])
{
bCheck[iClient] = true;

Expand Down

0 comments on commit 7a6eb0f

Please sign in to comment.