From c29f18f357fc4a5ce1c7315e744cbe601dac38c4 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 23 Nov 2013 18:06:27 +0000 Subject: (svn r26065) -Fix: possible dereference of NULL for texts from game scripts --- src/newgrf_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 596f11e87..7083680a9 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -296,7 +296,7 @@ struct UnmappedChoiceList : ZeroedMemoryAllocator { } char *d = old_d; - if (lm == NULL && this->type != SCC_PLURAL_LIST) { + if (lm == NULL) { /* 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. */ -- cgit v1.2.3-70-g09d2