From 2f89fef3536803c999e8068f1433155c7e3a4486 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 2 Aug 2007 23:21:52 +0000 Subject: (svn r10759) -Codechange: make the industry struct use the pool item class as super class. --- src/town_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/town_cmd.cpp') 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) { -- cgit v1.2.3-70-g09d2