diff options
author | rubidium <rubidium@openttd.org> | 2007-08-05 17:43:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-05 17:43:04 +0000 |
commit | ab5fa3add2f5f2feeb8f48127f6ee5ab69d42f65 (patch) | |
tree | 0eafac3ddee78188054a0844f0525a87e5435999 /src/train.h | |
parent | f6933e18701de289a439b658282549079d511b19 (diff) | |
download | openttd-ab5fa3add2f5f2feeb8f48127f6ee5ab69d42f65.tar.xz |
(svn r10798) -Fix [FS#1105]: virtual functions do not work in destructors :(.
Diffstat (limited to 'src/train.h')
-rw-r--r-- | src/train.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train.h b/src/train.h index 54eb23442..8d16a988e 100644 --- a/src/train.h +++ b/src/train.h @@ -262,7 +262,7 @@ struct Train : public Vehicle { Train() { this->type = VEH_TRAIN; } /** We want to 'destruct' the right class. */ - virtual ~Train() {} + virtual ~Train() { this->PreDestructor(); } const char *GetTypeString() const { return "train"; } void MarkDirty(); |