Added initializer braces to Client player; in NetPlayServer.cpp OnConnect()

This commit is contained in:
Sage King 2022-08-04 08:32:31 -06:00
parent d11df2b700
commit 5dea8aaed0
1 changed files with 1 additions and 1 deletions

View File

@ -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;