mirror of https://github.com/OpenTTD/OpenTTD.git
(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;
|
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.
|
/* In case there is no mapping, just ignore everything but the default.
|
||||||
* A probable cause for this happening is when the language file has
|
* 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. */
|
* been removed by the user and as such no mapping could be made. */
|
||||||
|
|
Loading…
Reference in New Issue