diff --git a/code/game/g_main.c b/code/game/g_main.c index 583479b3..41fa3fe9 100644 --- a/code/game/g_main.c +++ b/code/game/g_main.c @@ -765,9 +765,10 @@ void CalculateRanks( void ) { level.numNonSpectatorClients = 0; level.numPlayingClients = 0; level.numVotingClients = 0; // don't count bots - for ( i = 0; i < TEAM_NUM_TEAMS; i++ ) { + + for (i = 0; i < ARRAY_LEN(level.numteamVotingClients); i++) level.numteamVotingClients[i] = 0; - } + for ( i = 0 ; i < level.maxclients ; i++ ) { if ( level.clients[i].pers.connected != CON_DISCONNECTED ) { level.sortedClients[level.numConnectedClients] = i;