aboutsummaryrefslogtreecommitdiff
path: root/src/wx/Platform.cpp
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-06-04 18:25:15 +0200
committerStapleButter <thetotalworm@gmail.com>2017-06-04 18:25:15 +0200
commitd8ca8e83000b516815dddd55159dcd521e55fb0c (patch)
tree5b1523216147a8350fbe2798ab2cb25d3f205258 /src/wx/Platform.cpp
parentaf5fb2e8094e754830db0de164787b952378b5b9 (diff)
fix socket recv under anything not Windows
Diffstat (limited to 'src/wx/Platform.cpp')
-rw-r--r--src/wx/Platform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/Platform.cpp b/src/wx/Platform.cpp
index b925e24..4a60184 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;
}