This commit is contained in:
StapleButter 2017-05-21 20:43:40 +02:00
parent cb1b03b253
commit 1c6c2564d5
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ u8 PacketBuffer[2048];
bool MP_Init()
{
BOOL opt_true = TRUE;
int opt_true = 1;
int res;
#ifdef __WXMSW__
@ -72,7 +72,7 @@ bool MP_Init()
return false;
}
res = setsockopt(MPSocket, SOL_SOCKET, SO_REUSEADDR, (const char*)&opt_true, sizeof(BOOL));
res = setsockopt(MPSocket, SOL_SOCKET, SO_REUSEADDR, (const char*)&opt_true, sizeof(int));
if (res < 0)
{
closesocket(MPSocket);