[quake3-commits] r1795 - trunk/code/q3_ui

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Sep 1 07:43:19 EDT 2010


Author: thilo
Date: 2010-09-01 07:43:19 -0400 (Wed, 01 Sep 2010)
New Revision: 1795

Modified:
   trunk/code/q3_ui/ui_servers2.c
Log:
Fix flaw in my fix to #4737, thanks Zakk Middleton


Modified: trunk/code/q3_ui/ui_servers2.c
===================================================================
--- trunk/code/q3_ui/ui_servers2.c	2010-08-30 23:25:44 UTC (rev 1794)
+++ trunk/code/q3_ui/ui_servers2.c	2010-09-01 11:43:19 UTC (rev 1795)
@@ -672,7 +672,7 @@
 	}
 	*/
 	servernodeptr->nettype = atoi(Info_ValueForKey(info, "nettype"));
-	if (servernodeptr->nettype < 0 || servernodeptr->nettype >= ARRAY_LEN(netnames)) {
+	if (servernodeptr->nettype < 0 || servernodeptr->nettype >= ARRAY_LEN(netnames) - 1) {
 		servernodeptr->nettype = 0;
 	}
 



More information about the quake3-commits mailing list