From: Amadeusz Sławiński Date: Wed, 22 Feb 2017 13:55:28 +0000 (+0100) Subject: reduce scope of variable X-Git-Tag: xonotic-v0.8.5~2843^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=956402e8d028f41593b042e51cb60379faef7295;p=xonotic%2Fxonotic-data.pk3dir.git reduce scope of variable --- diff --git a/qcsrc/common/util.qc b/qcsrc/common/util.qc index a5ef6082f..e68d19c07 100644 --- a/qcsrc/common/util.qc +++ b/qcsrc/common/util.qc @@ -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);