From 5dea8aaed02cc0015e8f97e9b57049c69c81d962 Mon Sep 17 00:00:00 2001 From: Sage King Date: Thu, 4 Aug 2022 08:32:31 -0600 Subject: [PATCH] Added initializer braces to Client player; in NetPlayServer.cpp OnConnect() --- Source/Core/Core/NetPlayServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/NetPlayServer.cpp b/Source/Core/Core/NetPlayServer.cpp index c17248bac9..141ba474af 100644 --- a/Source/Core/Core/NetPlayServer.cpp +++ b/Source/Core/Core/NetPlayServer.cpp @@ -407,7 +407,7 @@ ConnectionError NetPlayServer::OnConnect(ENetPeer* socket, sf::Packet& rpac) if (m_players.size() >= 255) return ConnectionError::ServerFull; - Client player; + Client player{}; player.pid = pid; player.socket = socket;