From: Amadeusz Sławiński Date: Wed, 22 Feb 2017 14:05:52 +0000 (+0100) Subject: reduce scope of variable X-Git-Tag: xonotic-v0.8.5~2843^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7c95d65a6754cc2b3a41ce39ee326bc2f202b567;p=xonotic%2Fxonotic-data.pk3dir.git reduce scope of variable --- 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;