forked from mirror/OpenTTD
(svn r10759) -Codechange: make the industry struct use the pool item class as super class.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user