Mercurial > hg > openttd
changeset 17930:9d19bb310d4f draft
(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
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 12 Aug 2011 18:14:15 +0000 |
parents | a2ef1b374c8c |
children | 61764f9945a6 |
files | src/newgrf_text.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -293,8 +293,9 @@ 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;