Remove a superfluous endianness test

We're not supporting BE systems, and even when we did, I'm not sure this
test could ever have done something.
issue1247
Nicolas Hake 2015-02-11 20:41:35 +01:00
parent cba73bafca
commit 2d1e4caabc
1 changed files with 2 additions and 2 deletions

View File

@ -1240,9 +1240,9 @@ void C4Network2IO::SendConnPackets()
void C4Network2IO::OnPunch(C4NetIO::addr_t addr)
{
// Sanity check
if (addr.sin_family != AF_INET && addr.sin_family != htons(AF_INET))
assert (addr.sin_family == AF_INET);
if (addr.sin_family != AF_INET)
return;
addr.sin_family = AF_INET;
ZeroMem(addr.sin_zero, sizeof(addr.sin_zero));
// Add for local client
C4Network2Client *pLocal = ::Network.Clients.GetLocal();