r6062 - trunk/data/qcsrc/common

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Mar 6 08:40:21 EST 2009


Author: div0
Date: 2009-03-06 08:40:21 -0500 (Fri, 06 Mar 2009)
New Revision: 6062

Modified:
   trunk/data/qcsrc/common/util.qc
Log:
another bug bites the dust


Modified: trunk/data/qcsrc/common/util.qc
===================================================================
--- trunk/data/qcsrc/common/util.qc	2009-03-06 13:31:38 UTC (rev 6061)
+++ trunk/data/qcsrc/common/util.qc	2009-03-06 13:40:21 UTC (rev 6062)
@@ -1532,10 +1532,10 @@
 	n = tokenizebyseparator(str, " "); // must match g_maplist processing in ShuffleMaplist and "shuffle"
 	si = argv_start_index(i);
 	sj = argv_start_index(j);
-	ei = argv_end_index(i);
-	ej = argv_end_index(j);
+	ei = argv_end_index(i) + 1;
+	ej = argv_end_index(j) + 1;
 	s0 = argv_start_index(0);
-	en = argv_end_index(n-1);
+	en = argv_end_index(n-1) + 1;
 	s1 = substring_range(str, s0, si);
 	s2 = substring_range(str, si, ei);
 	s3 = substring_range(str, ei, sj);




More information about the nexuiz-commits mailing list