summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-10-21 20:39:57 +0200
committererorcun <erorcunerorcun@hotmail.com.tr>2020-10-21 20:39:57 +0200
commit70f625d2116ac43615647e103dc5d000e276e4c8 (patch)
treef32f84767bd8350504ae9467a008ab0f9acba1d1 /src
parentCTempColModels small fix (diff)
downloadre3-70f625d2116ac43615647e103dc5d000e276e4c8.tar
re3-70f625d2116ac43615647e103dc5d000e276e4c8.tar.gz
re3-70f625d2116ac43615647e103dc5d000e276e4c8.tar.bz2
re3-70f625d2116ac43615647e103dc5d000e276e4c8.tar.lz
re3-70f625d2116ac43615647e103dc5d000e276e4c8.tar.xz
re3-70f625d2116ac43615647e103dc5d000e276e4c8.tar.zst
re3-70f625d2116ac43615647e103dc5d000e276e4c8.zip
Diffstat (limited to 'src')
-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 2e0323eb..e6216f5b 100644
--- a/src/text/Messages.cpp
+++ b/src/text/Messages.cpp
@@ -387,12 +387,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;