Fix missing initialization of variables

This commit is contained in:
Benau 2020-05-13 08:48:50 +08:00
parent e802b21d15
commit 8f40f49506
2 changed files with 3 additions and 0 deletions

View File

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

View File

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