Changeset - r17920:9b20f829c53e
[Not reviewed]
master
0 1 0
rubidium - 13 years ago 2011-08-12 18:14:15
rubidium@openttd.org
(svn r22735) -Fix [FS#4718]: triggering NOT_REACHED when playing with a NewGRF that supplies genders/cases for a language that you removed from your installation
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf_text.cpp
Show inline comments
 
@@ -293,8 +293,9 @@ struct UnmappedChoiceList : ZeroedMemory
 

	
 
		char *d = old_d;
 
		if (lm == NULL && this->type != SCC_PLURAL_LIST) {
 
			NOT_REACHED();
 
			/* In case there is no mapping, just ignore everything but the default. */
 
			/* In case there is no mapping, just ignore everything but the default.
 
			 * A probable cause for this happening is when the language file has
 
			 * been removed by the user and as such no mapping could be made. */
 
			size_t len = strlen(this->strings[0]);
 
			memcpy(d, this->strings[0], len);
 
			return d + len;
0 comments (0 inline, 0 general)