port: net: cap --maxclients

This commit is contained in:
fgsfds committed 2024-01-07 22:20:46 +01:00
1 parent c8d42bbf20
commit 4b30f52b32
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}