]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/string.qh
micro-optimization chore: in for-loops change all post-{in,de}crements to pre-{in...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / string.qh
index 72673b2354517e28c5abd96c1cc1eb8f160b5b70..743f4310bac53d214f7f808372fcd369a4971d8b 100644 (file)
@@ -570,7 +570,7 @@ vector checkColorCode(string theText, int text_len, int pos, bool check_at_the_e
        int ofs = cc_len;
        if (!check_at_the_end)
                ofs--;
-       for (; ofs >= 1; ofs--)
+       for (; ofs >= 1; --ofs)
        {
                if (!(pos >= ofs && text_len >= pos + (cc_len - ofs)))
                        continue;