fix bad loop condition

This commit is contained in:
Ricardo Luís Vaz Silva 2025-05-28 00:25:35 -03:00
commit 4bd373745a

View file

@ -179,7 +179,7 @@ extend class BaseStatusBar
y -= (BigFont.GetHeight() + 8) * CleanYfac;
int numTeams = 0;
for(int i = 0; i < MAXPLAYERS; i++)
for(int i = 0; i < sortedPlayers.Size(); i++)
{
PlayerInfo p = players[sortedPlayers[i]];
if (playeringame[sortedPlayers[i]] && Team.IsValid(p.GetTeam()))