From 956402e8d028f41593b042e51cb60379faef7295 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Wed, 22 Feb 2017 14:55:28 +0100 Subject: [PATCH] reduce scope of variable --- qcsrc/common/util.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/util.qc b/qcsrc/common/util.qc index a5ef6082f8..e68d19c075 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); -- 2.39.2