summaryrefslogtreecommitdiff
path: root/src/newgrf_text.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-10-14 16:51:30 +0000
committeryexo <yexo@openttd.org>2011-10-14 16:51:30 +0000
commit47aaf41d401ba7422f9a6cf4abb43d378e4ccdfd (patch)
treea7297272634cb7352200f6e28860c1ed532db62c /src/newgrf_text.cpp
parent1312c35bb6504b4972ec153759daee58682a06f7 (diff)
downloadopenttd-47aaf41d401ba7422f9a6cf4abb43d378e4ccdfd.tar.xz
(svn r23029) -Fix: [NewGRF] support for cases in strings was broken
Diffstat (limited to 'src/newgrf_text.cpp')
-rw-r--r--src/newgrf_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp
index a5f598360..4da01d2f1 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -528,7 +528,7 @@ char *TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_newline
int mapped = lm != NULL ? lm->GetMapping(index, code == 0x0E) : -1;
if (mapped >= 0) {
d += Utf8Encode(d, code == 0x0E ? SCC_GENDER_INDEX : SCC_SETCASE);
- d += Utf8Encode(d, mapped);
+ d += Utf8Encode(d, code == 0x0E ? mapped : mapped + 1);
}
break;
}