mirror of https://github.com/OpenTTD/OpenTTD
(svn r10088) -Codechange: A typo and a code-style
parent
5f5ab6cc87
commit
94200b63b8
|
@ -106,7 +106,7 @@ struct GRFFileProps {
|
||||||
uint8 subst_id;
|
uint8 subst_id;
|
||||||
uint16 local_id; ///< id defined by the grf file for this industry
|
uint16 local_id; ///< id defined by the grf file for this industry
|
||||||
struct SpriteGroup *spritegroup; ///< pointer to the different sprites of the industry
|
struct SpriteGroup *spritegroup; ///< pointer to the different sprites of the industry
|
||||||
const struct GRFFile *grffile; ///< grf file that introduced this house
|
const struct GRFFile *grffile; ///< grf file that introduced this industry
|
||||||
uint8 override; ///< id of the entity been replaced by
|
uint8 override; ///< id of the entity been replaced by
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -4318,7 +4318,9 @@ static void ResetCustomHouses()
|
||||||
|
|
||||||
for (file = _first_grffile; file != NULL; file = file->next) {
|
for (file = _first_grffile; file != NULL; file = file->next) {
|
||||||
if (file->housespec == NULL) continue;
|
if (file->housespec == NULL) continue;
|
||||||
for (i = 0; i < HOUSE_MAX; i++) free(file->housespec[i]);
|
for (i = 0; i < HOUSE_MAX; i++) {
|
||||||
|
free(file->housespec[i]);
|
||||||
|
}
|
||||||
|
|
||||||
free(file->housespec);
|
free(file->housespec);
|
||||||
file->housespec = NULL;
|
file->housespec = NULL;
|
||||||
|
|
Loading…
Reference in New Issue