summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_utils.c b/src/game/g_utils.c
index d90898eb..420557d6 100644
--- a/src/game/g_utils.c
+++ b/src/game/g_utils.c
@@ -995,7 +995,8 @@ qboolean G_AddressParse( const char *str, addr_t *addr, int *netmask )
{
if( *p )
return qfalse;
- *netmask = max;
+ if( netmask )
+ *netmask = max;
}
return qtrue;
}