From: Martin Taibr Date: Sun, 1 Jan 2017 01:12:34 +0000 (+0100) Subject: fix wrong use of substring X-Git-Tag: xonotic-v0.8.2~169^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=557b416febb74c7adc3216357529e20d27b42e5a;p=xonotic%2Fxonotic-data.pk3dir.git fix wrong use of substring --- diff --git a/qcsrc/common/mutators/mutator/damagetext/damagetext.qc b/qcsrc/common/mutators/mutator/damagetext/damagetext.qc index d68feda3a..ad6423e87 100644 --- a/qcsrc/common/mutators/mutator/damagetext/damagetext.qc +++ b/qcsrc/common/mutators/mutator/damagetext/damagetext.qc @@ -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)) ); }