Changeset - r16587:f4481d4592ac
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-11-25 23:14:25
rubidium@openttd.org
(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
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_text.cpp
Show inline comments
 
@@ -324,7 +324,7 @@ struct UnmappedChoiceList : ZeroedMemory
 
				char *str = this->strings[idx];
 

	
 
				/* "<CASEn>" */
 
				*d++ = i;
 
				*d++ = i + 1;
 

	
 
				/* "<LENn>" */
 
				size_t len = strlen(str) + 1;
0 comments (0 inline, 0 general)