diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-21 20:27:13 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-21 20:27:13 +0200 |
commit | 86002b093f51d7d4b9d17bcbadf878cc0519cc4b (patch) | |
tree | 3d4eb10b1f5830472412586565b54815c7929e18 /src/text/Messages.cpp | |
parent | CTempColModels stuff (diff) | |
download | re3-86002b093f51d7d4b9d17bcbadf878cc0519cc4b.tar re3-86002b093f51d7d4b9d17bcbadf878cc0519cc4b.tar.gz re3-86002b093f51d7d4b9d17bcbadf878cc0519cc4b.tar.bz2 re3-86002b093f51d7d4b9d17bcbadf878cc0519cc4b.tar.lz re3-86002b093f51d7d4b9d17bcbadf878cc0519cc4b.tar.xz re3-86002b093f51d7d4b9d17bcbadf878cc0519cc4b.tar.zst re3-86002b093f51d7d4b9d17bcbadf878cc0519cc4b.zip |
Diffstat (limited to 'src/text/Messages.cpp')
-rw-r--r-- | src/text/Messages.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/text/Messages.cpp b/src/text/Messages.cpp index 257a47ce..2154384c 100644 --- a/src/text/Messages.cpp +++ b/src/text/Messages.cpp @@ -390,12 +390,11 @@ CMessages::InsertNumberInString(wchar *str, int32 n1, int32 n2, int32 n3, int32 if (str[c] == '~' && str[c + 1] == '1' && str[c + 2] == '~') { #endif c += 3; - for (int j = 0; j < outLen; j++) + for (int j = 0; j < outLen; ) *(outstr++) = wNumStr[j++]; i++; switch (i) { - case 0: sprintf(numStr, "%d", n1); break; case 1: sprintf(numStr, "%d", n2); break; case 2: sprintf(numStr, "%d", n3); break; case 3: sprintf(numStr, "%d", n4); break; |