summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-06-10 23:40:29 +0000
committerbelugas <belugas@openttd.org>2007-06-10 23:40:29 +0000
commit7f8b42b59842c412575355634d5c62ef2cf8973d (patch)
treed56ce2a396a7f1e55d7e922ce5ffa0b74065c844
parenta2b505e4ca5973cbf087ea856431fe8922687e1b (diff)
downloadopenttd-7f8b42b59842c412575355634d5c62ef2cf8973d.tar.xz
(svn r10088) -Codechange: A typo and a code-style
-rw-r--r--src/industry.h2
-rw-r--r--src/newgrf.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/industry.h b/src/industry.h
index 6cb853524..9ac25993e 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 3236b52c3..d5970db2c 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;