fix wrong use of substring
authorMartin Taibr <taibr.martin@gmail.com>
Sun, 1 Jan 2017 01:12:34 +0000 (02:12 +0100)
committerMartin Taibr <taibr.martin@gmail.com>
Sun, 1 Jan 2017 01:12:34 +0000 (02:12 +0100)
qcsrc/common/mutators/mutator/damagetext/damagetext.qc

index d68feda3a2b221e3f327214b2a365b148108f138..ad6423e870c9d5a28a1823d7da9b5494536067de 100644 (file)
@@ -138,7 +138,7 @@ CLASS(DamageText, Object)
             if (closing_pos == -1 || closing_pos <= opening_pos) break;
             s = strcat(
                 substring(s, 0, opening_pos),
-                substring(s, closing_pos + 1, strlen(s))
+                substring_range(s, closing_pos + 1, strlen(s))
             );
         }