summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-23 18:06:27 +0000
committerrubidium <rubidium@openttd.org>2013-11-23 18:06:27 +0000
commitc29f18f357fc4a5ce1c7315e744cbe601dac38c4 (patch)
tree6725475f4aec72ae9bab2e04d7103dd55813fffe /src
parentd9ee35006db8ed149e64f636c4b550e076acee5e (diff)
downloadopenttd-c29f18f357fc4a5ce1c7315e744cbe601dac38c4.tar.xz
(svn r26065) -Fix: possible dereference of NULL for texts from game scripts
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_text.cpp2
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. */