Engine: fix incorrect assignment on rcon socket bind

The assignment on the ternary operator should be flipped, bug was spotted during beta testing.
This commit is contained in:
Kawe Mazidjatari 2024-04-15 23:58:16 +02:00
parent 28d8dc25e5
commit fdbd9a6452

View File

@ -89,7 +89,7 @@ void CRConServer::Init(const char* pPassword, const char* pNetKey)
return; return;
} }
const char* pszAddress = sv_rcon_useloopbacksocket.GetBool() ? NET_IPV6_UNSPEC : NET_IPV6_LOOPBACK; const char* pszAddress = sv_rcon_useloopbacksocket.GetBool() ? NET_IPV6_LOOPBACK : NET_IPV6_UNSPEC;
m_Address.SetFromString(Format("[%s]:%i", pszAddress, hostport->GetInt()).c_str(), true); m_Address.SetFromString(Format("[%s]:%i", pszAddress, hostport->GetInt()).c_str(), true);
m_Socket.CreateListenSocket(m_Address); m_Socket.CreateListenSocket(m_Address);