From a04da74fa16ccf19da5fd82b9a06b0f3ddb363c7 Mon Sep 17 00:00:00 2001 From: Josh Allen Date: Thu, 2 Sep 2004 21:27:48 +0000 Subject: [PATCH] Fixed SortStats bug resulting in extra blank users --- stepmania/src/NetworkSyncServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/NetworkSyncServer.cpp b/stepmania/src/NetworkSyncServer.cpp index 991bdb8bc8..d54cad26e5 100644 --- a/stepmania/src/NetworkSyncServer.cpp +++ b/stepmania/src/NetworkSyncServer.cpp @@ -268,8 +268,8 @@ int StepManiaLanServer::SortStats(LanPlayer *playersPtr[]) { for (int x = 0; x < NUMBERCLIENTS; x++) if (Client[x].Used == true) - if (Client[x].IsPlaying(0)) - for (int y = 0; y < 2; y++) + for (int y = 0; y < 2; y++) + if (Client[x].IsPlaying(y)) playersPtr[counter++] = &Client[x].Player[y];