mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 07:21:53 +00:00
(svn r26065) -Fix: possible dereference of NULL for texts from game scripts
This commit is contained in:
parent
d9ee35006d
commit
c29f18f357
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user