summaryrefslogtreecommitdiff
path: root/src/newgrf_text.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-25 23:14:25 +0000
committerrubidium <rubidium@openttd.org>2010-11-25 23:14:25 +0000
commitfad75f5d5ab4686f8483d521c9f0589e20c85c14 (patch)
treed7dd434cb60275ff02f334dcf3a353884d9fd1f9 /src/newgrf_text.cpp
parent4e6d29351e3232cfb749e3ac0c7116aca18d44f1 (diff)
downloadopenttd-fad75f5d5ab4686f8483d521c9f0589e20c85c14.tar.xz
(svn r21327) -Fix: cases are always "off-by-one" w.r.t. to the case table as there is an implicit default case with index 0
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 2a4f7f63f..7d3f3224d 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -324,7 +324,7 @@ struct UnmappedChoiceList : ZeroedMemoryAllocator {
char *str = this->strings[idx];
/* "<CASEn>" */
- *d++ = i;
+ *d++ = i + 1;
/* "<LENn>" */
size_t len = strlen(str) + 1;