summaryrefslogtreecommitdiff
path: root/src/ship.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/ship.h
parentf6933e18701de289a439b658282549079d511b19 (diff)
downloadopenttd-ab5fa3add2f5f2feeb8f48127f6ee5ab69d42f65.tar.xz
(svn r10798) -Fix [FS#1105]: virtual functions do not work in destructors :(.
Diffstat (limited to 'src/ship.h')
-rw-r--r--src/ship.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship.h b/src/ship.h
index 0ca73ee95..304872758 100644
--- a/src/ship.h
+++ b/src/ship.h
@@ -37,7 +37,7 @@ struct Ship: public Vehicle {
Ship() { this->type = VEH_SHIP; }
/** We want to 'destruct' the right class. */
- virtual ~Ship() {}
+ virtual ~Ship() { this->PreDestructor(); }
const char *GetTypeString() const { return "ship"; }
void MarkDirty();