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 d68feda..ad6423e 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))
             );
         }