Permalink
Browse files

Prevent error

  • Loading branch information...
Bara committed Oct 27, 2018
1 parent feaa6e6 commit 74246ed53eaa59cba3d2007007021a4735d1068c
Showing with 6 additions and 1 deletion.
  1. +6 −1 addons/sourcemod/scripting/ttt/ttt_spec_menu.sp
@@ -453,7 +453,12 @@ stock int GetNextClient(int client, bool nextClient = true)
int iLimit = (nextClient ? MaxClients + 1 : 0);
bool bCheck[MAXPLAYERS + 1] = { false, ... };
while (!TTT_IsPlayerAlive(iClient) && !bCheck[iClient])
if (iClient == -1)
{
return -1;
}
while (iClient == -1 && !TTT_IsPlayerAlive(iClient) && !bCheck[iClient])
{
bCheck[iClient] = true;

0 comments on commit 74246ed

Please sign in to comment.