diff --git a/lib/netplay/netplay.c b/lib/netplay/netplay.c index b7ced99b2..bf155b169 100644 --- a/lib/netplay/netplay.c +++ b/lib/netplay/netplay.c @@ -1931,7 +1931,7 @@ static void NETallowJoining(void) debug(LOG_NET, "tmp_socket[%d]=%p Accepted", i, tmp_socket[i]); SDLNet_TCP_AddSocket(tmp_socket_set, tmp_socket[i]); if (SDLNet_CheckSockets(tmp_socket_set, 1000) > 0 - && SDLNet_SocketReady(tmp_socket[0]) + && SDLNet_SocketReady(tmp_socket[i]) && (recv_result = SDLNet_TCP_Recv(tmp_socket[i], buffer, 5))) { if(strcmp(buffer, "list")==0)