]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/util.qc
reduce scope of variable
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / util.qc
index a5ef6082f8e82bd4435e7b86a1edfadfe827d207..e68d19c075b212e42715ec19e3992e7e66e27cd6 100644 (file)
@@ -413,11 +413,11 @@ string fixPriorityList(string order, float from, float to, float subtract, float
 string mapPriorityList(string order, string(string) mapfunc)
 {
        string neworder;
-       float i, n;
+       float n;
 
        n = tokenize_console(order);
        neworder = "";
-       for(i = 0; i < n; ++i)
+       for(float i = 0; i < n; ++i)
                neworder = strcat(neworder, mapfunc(argv(i)), " ");
 
        return substring(neworder, 0, strlen(neworder) - 1);