]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a (very bad!) bug with -port cvar setting
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Aug 2003 07:09:13 +0000 (07:09 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Aug 2003 07:09:13 +0000 (07:09 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3407 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c

index 47d219aa8a5e50c91b769f7c4ce6cdf260e5811e..08ab2a0cf241240e1b2753386fb9fe94e4bf501d 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -1608,7 +1608,7 @@ void NetConn_Init(void)
                if (i >= 0 && i < 65536)
                {
                        Con_Printf("-port option used, setting port cvar to %i\n", i);
-                       Cvar_SetQuick(&sv_netport, i);
+                       Cvar_SetValueQuick(&sv_netport, i);
                }
                else
                        Con_Printf("-port option used, but %i is not a valid port number\n", i);