Mercurial > hg > openttd
changeset 6848:2dcc88253d83 draft
(svn r10088) -Codechange: A typo and a code-style
author | belugas <belugas@openttd.org> |
---|---|
date | Sun, 10 Jun 2007 23:40:29 +0000 |
parents | 506a6e1063f4 |
children | cbe1a12e652d |
files | src/industry.h src/newgrf.cpp |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/industry.h +++ b/src/industry.h @@ -106,7 +106,7 @@ 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 };
--- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -4318,7 +4318,9 @@ 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;