From fad75f5d5ab4686f8483d521c9f0589e20c85c14 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 25 Nov 2010 23:14:25 +0000 Subject: (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 --- src/newgrf_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_text.cpp') 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]; /* "" */ - *d++ = i; + *d++ = i + 1; /* "" */ size_t len = strlen(str) + 1; -- cgit v1.2.3-54-g00ecf