Fix missing initialization of variables
This commit is contained in:
parent
e802b21d15
commit
8f40f49506
@ -179,6 +179,7 @@ Server::Server(unsigned server_id, const core::stringw &name, int max_players,
|
||||
bool game_started, const std::string& current_track)
|
||||
: m_supports_encrytion(false)
|
||||
{
|
||||
m_reconnect_when_quit_lobby = false;
|
||||
m_ipv6_connection = false;
|
||||
m_name = name;
|
||||
m_lower_case_name = StringUtils::toLowerCase(StringUtils::wideToUtf8(name));
|
||||
|
@ -81,10 +81,12 @@ SocketAddress::SocketAddress(const ENetAddress& ea)
|
||||
}
|
||||
else
|
||||
{
|
||||
m_family = AF_INET;
|
||||
setIP(htonl(ea.host.p0));
|
||||
setPort(ea.port);
|
||||
}
|
||||
#else
|
||||
m_family = AF_INET;
|
||||
setIP(htonl(ea.host));
|
||||
setPort(ea.port);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user