forked from Ports/perfect_dark
port: net: cap --maxclients
This commit is contained in:
1 parent
c8d42bbf20
commit
4b30f52b32
1 file changed
+1
-1
+1
-1
@@ -338,7 +338,7 @@ void netInit(void)
|
||||
}
|
||||
|
||||
const s32 argmaxclients = sysArgGetInt("--maxclients", -1);
|
||||
if (argmaxclients > 0) {
|
||||
if (argmaxclients > 0 && argmaxclients <= NET_MAX_CLIENTS) {
|
||||
g_NetMaxClients = argmaxclients;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user