diff --git a/neo/sys/posix/posix_net.cpp b/neo/sys/posix/posix_net.cpp index 8b96cca9..b3bbdb54 100644 --- a/neo/sys/posix/posix_net.cpp +++ b/neo/sys/posix/posix_net.cpp @@ -230,7 +230,7 @@ bool Sys_IsLANAddress( const netadr_t adr ) { } for ( i = 0; i < num_interfaces; i++ ) { - ip = ntohl( adr.ip[0] ); + ip = ntohl( *( unsigned int *)&adr.ip ); if( ( netint[i].ip & netint[i].mask ) == ( ip & netint[i].mask ) ) { return true; }