summaryrefslogtreecommitdiffstats
path: root/src/text
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-10-21 20:27:13 +0200
committererorcun <erorcunerorcun@hotmail.com.tr>2020-10-21 20:27:13 +0200
commit86002b093f51d7d4b9d17bcbadf878cc0519cc4b (patch)
tree3d4eb10b1f5830472412586565b54815c7929e18 /src/text
parentCTempColModels stuff (diff)
downloadre3-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')
-rw-r--r--src/text/Messages.cpp3
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;