(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:
Darkvater
2006-12-20 20:43:52 +00:00
parent 9011371e83
commit 1812bcfc8c
3 changed files with 12 additions and 10 deletions

View File

@@ -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;
}