fix stupid crash

This commit is contained in:
Arisotura 2023-09-09 16:17:20 +02:00
parent 456736d548
commit 5153b17dac
2 changed files with 4 additions and 1 deletions

View File

@ -825,6 +825,8 @@ void SetMPRecvTimeout(int timeout)
void MPBegin()
{
if (!Host) return;
ConnectedBitmask |= (1<<MyPlayer.ID);
LastHostID = -1;
LastHostPeer = nullptr;
@ -836,6 +838,8 @@ void MPBegin()
void MPEnd()
{
if (!Host) return;
ConnectedBitmask &= ~(1<<MyPlayer.ID);
u8 cmd[2] = {0x05, (u8)MyPlayer.ID};

View File

@ -38,7 +38,6 @@
#include "LAN_Socket.h"
#include "LAN_PCap.h"
#include "IPC.h"
#include "IPC.h"
#include "LAN.h"
#include "OSD.h"