summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-26 20:45:02 +0000
committerrubidium <rubidium@openttd.org>2008-12-26 20:45:02 +0000
commitf18043ee21218dc9ea26ce41b1294c5212ac363c (patch)
tree8f057180fb9ab731f9c1950f45a7d957bf7d4ae0 /src/aircraft_cmd.cpp
parent73ca72922c64db43f16b4283548ccf30aca3e59a (diff)
downloadopenttd-f18043ee21218dc9ea26ce41b1294c5212ac363c.tar.xz
(svn r14747) -Codechange: remove DeleteVehicleChain in favour of the vehicle destructor as that was already doing the same for a few vehicle types.
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 8d0f911af..b98e25e90 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -465,7 +465,7 @@ static void DoDeleteAircraft(Vehicle *v)
DeleteWindowById(WC_VEHICLE_VIEW, v->index);
InvalidateWindow(WC_COMPANY, v->owner);
DeleteDepotHighlightOfVehicle(v);
- DeleteVehicleChain(v);
+ delete v;
InvalidateWindowClassesData(WC_AIRCRAFT_LIST, 0);
}