Fixed storing of EnetAddresses in TransportAddress.

This commit is contained in:
hiker 2015-11-18 08:14:58 +11:00
parent 29e0b50e14
commit 17f588bcf2

View File

@ -53,7 +53,7 @@ public:
/** Construct an transport address from an ENetAddress. */
TransportAddress(const ENetAddress &a)
{
m_ip = a.host;
m_ip = htonl(a.host);
m_port = a.port;
} // TransportAddress(EnetAddress)