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://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=7c95d65a6754cc2b3a41ce39ee326bc2f202b567 reduce scope of variable --- diff --git a/qcsrc/common/util.qc b/qcsrc/common/util.qc index 0a371ff000..118d60d23f 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;