fix socket recv under anything not Windows

This commit is contained in:
StapleButter 2017-06-04 18:25:15 +02:00
parent af5fb2e809
commit d8ca8e8300
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}