(svn r10759) -Codechange: make the industry struct use the pool item class as super class.

This commit is contained in:
rubidium
2007-08-02 23:21:52 +00:00
parent 549450d31a
commit e4149482ec
6 changed files with 43 additions and 84 deletions

View File

@@ -61,7 +61,7 @@ Town::~Town()
_total_towns--;
/* Delete all industries belonging to the town */
FOR_ALL_INDUSTRIES(i) if (i->town == this) DeleteIndustry(i);
FOR_ALL_INDUSTRIES(i) if (i->town == this) delete i;
/* Go through all tiles and delete those belonging to the town */
for (TileIndex tile = 0; tile < MapSize(); ++tile) {