mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 14:49:53 -06:00
fix stupid crash
This commit is contained in:
@ -825,6 +825,8 @@ void SetMPRecvTimeout(int timeout)
|
|||||||
|
|
||||||
void MPBegin()
|
void MPBegin()
|
||||||
{
|
{
|
||||||
|
if (!Host) return;
|
||||||
|
|
||||||
ConnectedBitmask |= (1<<MyPlayer.ID);
|
ConnectedBitmask |= (1<<MyPlayer.ID);
|
||||||
LastHostID = -1;
|
LastHostID = -1;
|
||||||
LastHostPeer = nullptr;
|
LastHostPeer = nullptr;
|
||||||
@ -836,6 +838,8 @@ void MPBegin()
|
|||||||
|
|
||||||
void MPEnd()
|
void MPEnd()
|
||||||
{
|
{
|
||||||
|
if (!Host) return;
|
||||||
|
|
||||||
ConnectedBitmask &= ~(1<<MyPlayer.ID);
|
ConnectedBitmask &= ~(1<<MyPlayer.ID);
|
||||||
|
|
||||||
u8 cmd[2] = {0x05, (u8)MyPlayer.ID};
|
u8 cmd[2] = {0x05, (u8)MyPlayer.ID};
|
||||||
|
@ -38,7 +38,6 @@
|
|||||||
#include "LAN_Socket.h"
|
#include "LAN_Socket.h"
|
||||||
#include "LAN_PCap.h"
|
#include "LAN_PCap.h"
|
||||||
#include "IPC.h"
|
#include "IPC.h"
|
||||||
#include "IPC.h"
|
|
||||||
#include "LAN.h"
|
#include "LAN.h"
|
||||||
#include "OSD.h"
|
#include "OSD.h"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user