summaryrefslogtreecommitdiff
path: root/src/qcommon/net_ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcommon/net_ip.c')
-rw-r--r--src/qcommon/net_ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/net_ip.c b/src/qcommon/net_ip.c
index a64cd04e..682f4689 100644
--- a/src/qcommon/net_ip.c
+++ b/src/qcommon/net_ip.c
@@ -426,7 +426,7 @@ qboolean NET_CompareBaseAdrMask(netadr_t a, netadr_t b, int netmask)
if(curbyte && memcmp(addra, addrb, curbyte))
return qfalse;
- netmask &= ~0x07;
+ netmask &= 0x07;
if(netmask)
{
cmpmask = (1 << netmask) - 1;