From 94200b63b807cd2f9c28bfae400ff5f49e524725 Mon Sep 17 00:00:00 2001 From: belugas Date: Sun, 10 Jun 2007 23:40:29 +0000 Subject: [PATCH] (svn r10088) -Codechange: A typo and a code-style --- src/industry.h | 2 +- src/newgrf.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/industry.h b/src/industry.h index 6cb853524b..9ac25993e0 100644 --- a/src/industry.h +++ b/src/industry.h @@ -106,7 +106,7 @@ struct GRFFileProps { uint8 subst_id; uint16 local_id; ///< id defined by the grf file for this 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 }; diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 3236b52c3d..d5970db2cf 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -4318,7 +4318,9 @@ static void ResetCustomHouses() for (file = _first_grffile; file != NULL; file = file->next) { 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); file->housespec = NULL;