Changeset - r20991:99f34135afdd
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-23 18:06:27
rubidium@openttd.org
(svn r26065) -Fix: possible dereference of NULL for texts from game scripts
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_text.cpp
Show inline comments
 
@@ -296,7 +296,7 @@ struct UnmappedChoiceList : ZeroedMemory
 
		}
 

	
 
		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. */
0 comments (0 inline, 0 general)