Added initializer braces to Client player; in NetPlayServer.cpp OnConnect()
This commit is contained in:
parent
d11df2b700
commit
5dea8aaed0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue