From 7c95d65a6754cc2b3a41ce39ee326bc2f202b567 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Wed, 22 Feb 2017 15:05:52 +0100 Subject: [PATCH] reduce scope of variable --- qcsrc/common/util.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcsrc/common/util.qc b/qcsrc/common/util.qc index 0a371ff00..118d60d23 100644 --- a/qcsrc/common/util.qc +++ b/qcsrc/common/util.qc @@ -779,8 +779,7 @@ string find_last_color_code(string s) if (start == -1) // no caret found return ""; int len = strlen(s)-1; - int i; - for(i = len; i >= start; --i) + for(int i = len; i >= start; --i) { if(substring(s, i, 1) != "^") continue; -- 2.39.2