summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_utils.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/g_utils.c b/src/game/g_utils.c
index 8b76704b..6655c2d4 100644
--- a/src/game/g_utils.c
+++ b/src/game/g_utils.c
@@ -991,8 +991,12 @@ qboolean G_AddressParse( const char *str, addr_t *addr, int *netmask )
*netmask = max;
}
}
- else if( *p )
- return qfalse;
+ else
+ {
+ if( *p )
+ return qfalse;
+ *subnet = max;
+ }
return qtrue;
}