From d99ef6a1b8225874bd625b2b30c2acb93d71bfe4 Mon Sep 17 00:00:00 2001 From: JuiceyDev Date: Fri, 6 Mar 2026 10:28:41 +0100 Subject: [PATCH] socket UGUHH --- Minecraft.World/Network/Socket.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Minecraft.World/Network/Socket.cpp b/Minecraft.World/Network/Socket.cpp index e138dcc02..801c6a61d 100644 --- a/Minecraft.World/Network/Socket.cpp +++ b/Minecraft.World/Network/Socket.cpp @@ -60,7 +60,14 @@ Socket::Socket(bool response) { m_end = SOCKET_CLIENT_END; Socket *socket = new Socket(1); - s_serverConnection->NewIncomingSocket(socket); + if ( s_serverConnection != NULL ) + { + s_serverConnection->NewIncomingSocket(socket); + } + else + { + app.DebugPrintf("SOCKET: Warning - attempted to notify server of new incoming socket but s_serverConnection is NULL\n"); + } } for( int i = 0; i < 2; i++ )