From d8ca8e83000b516815dddd55159dcd521e55fb0c Mon Sep 17 00:00:00 2001 From: StapleButter Date: Sun, 4 Jun 2017 18:25:15 +0200 Subject: [PATCH] fix socket recv under anything not Windows --- src/wx/Platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/Platform.cpp b/src/wx/Platform.cpp index b925e248..4a601845 100644 --- a/src/wx/Platform.cpp +++ b/src/wx/Platform.cpp @@ -224,7 +224,7 @@ int MP_RecvPacket(u8* data, bool block) tv.tv_sec = 0; tv.tv_usec = 0; - if (!select(1, &fd, 0, 0, &tv)) + if (!select(MPSocket+1, &fd, 0, 0, &tv)) { return 0; }