(svn r26065) -Fix: possible dereference of NULL for texts from game scripts

This commit is contained in:
rubidium 2013-11-23 18:06:27 +00:00
parent d9ee35006d
commit c29f18f357
1 changed files with 1 additions and 1 deletions

View File

@ -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. */