forked from mirror/OpenTTD
(svn r7517) -Codechange: Set pointers to NULL when freeing the newgrf config variables and add the proper const to CopyGRFConfigList
This commit is contained in:
@@ -1534,7 +1534,7 @@ static GRFConfig *GRFLoadConfig(IniFile *ini, const char *grpname, bool is_stati
|
||||
}
|
||||
|
||||
ShowInfoF("ini: ignoring invalid NewGRF '%s': %s", item->name, msg);
|
||||
ClearGRFConfig(c);
|
||||
ClearGRFConfig(&c);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user