summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-02 23:21:52 +0000
committerrubidium <rubidium@openttd.org>2007-08-02 23:21:52 +0000
commit2f89fef3536803c999e8068f1433155c7e3a4486 (patch)
tree492ddfe6412cdabdaaaa435390d2417c774cf096 /src/town_cmd.cpp
parentc60988a1d5d2a140eb5f8ff1b90119ee40ec787e (diff)
downloadopenttd-2f89fef3536803c999e8068f1433155c7e3a4486.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.cpp2
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) {