diff options
author | rubidium <rubidium@openttd.org> | 2013-11-23 18:06:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-23 18:06:27 +0000 |
commit | c29f18f357fc4a5ce1c7315e744cbe601dac38c4 (patch) | |
tree | 6725475f4aec72ae9bab2e04d7103dd55813fffe | |
parent | d9ee35006db8ed149e64f636c4b550e076acee5e (diff) | |
download | openttd-c29f18f357fc4a5ce1c7315e744cbe601dac38c4.tar.xz |
(svn r26065) -Fix: possible dereference of NULL for texts from game scripts
-rw-r--r-- | src/newgrf_text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |