diff options
author | rubidium <rubidium@openttd.org> | 2007-08-02 23:21:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-02 23:21:52 +0000 |
commit | e4149482ec1c1d5424327983df2ebf2419ffe273 (patch) | |
tree | 492ddfe6412cdabdaaaa435390d2417c774cf096 /src/town_cmd.cpp | |
parent | 549450d31a4676039e2663e66e23e2f5bae3f7f1 (diff) | |
download | openttd-e4149482ec1c1d5424327983df2ebf2419ffe273.tar.xz |
(svn r10759) -Codechange: make the industry struct use the pool item class as super class.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 0e38750f0..24a14edc7 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -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) { |