mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-13 02:52:37 +00:00
(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
This commit is contained in:
parent
4e6d29351e
commit
fad75f5d5a
@ -324,7 +324,7 @@ struct UnmappedChoiceList : ZeroedMemoryAllocator {
|
|||||||
char *str = this->strings[idx];
|
char *str = this->strings[idx];
|
||||||
|
|
||||||
/* "<CASEn>" */
|
/* "<CASEn>" */
|
||||||
*d++ = i;
|
*d++ = i + 1;
|
||||||
|
|
||||||
/* "<LENn>" */
|
/* "<LENn>" */
|
||||||
size_t len = strlen(str) + 1;
|
size_t len = strlen(str) + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user