Skip to content

Commit

Permalink
2.3: Change do-while to while, since it doesn't make sense to try to …
Browse files Browse the repository at this point in the history
…read a game structure when there are none in the lobby.
  • Loading branch information
Cyp committed Jul 22, 2010
1 parent bbbe81b commit aec5227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/netplay/netplay.c
Expand Up @@ -3777,7 +3777,7 @@ BOOL NETfindGame(void)
// Clear old games from list.
memset(NetPlay.games, 0x00, sizeof(NetPlay.games));

do
while (gamecount < gamesavailable)
{
// Attempt to receive a game description structure
if (!NETrecvGAMESTRUCT(&NetPlay.games[gamecount]))
Expand All @@ -3794,7 +3794,7 @@ BOOL NETfindGame(void)
}

++gamecount;
} while (gamecount < gamesavailable);
}

freeaddrinfo(hosts);
return true;
Expand Down

0 comments on commit aec5227

Please sign in to comment.