summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-05 17:43:04 +0000
committerrubidium <rubidium@openttd.org>2007-08-05 17:43:04 +0000
commitab5fa3add2f5f2feeb8f48127f6ee5ab69d42f65 (patch)
tree0eafac3ddee78188054a0844f0525a87e5435999 /src/vehicle.h
parentf6933e18701de289a439b658282549079d511b19 (diff)
downloadopenttd-ab5fa3add2f5f2feeb8f48127f6ee5ab69d42f65.tar.xz
(svn r10798) -Fix [FS#1105]: virtual functions do not work in destructors :(.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index bdd646987..743987763 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -347,6 +347,8 @@ struct Vehicle : PoolItem<Vehicle, VehicleID, &_Vehicle_pool> {
/** Create a new vehicle */
Vehicle();
+ /** Destroy all stuff that (still) needs the virtual functions to work properly */
+ void PreDestructor();
/** We want to 'destruct' the right class. */
virtual ~Vehicle();