(svn r10798) -Fix [FS#1105]: virtual functions do not work in destructors :(.

This commit is contained in:
rubidium
2007-08-05 17:43:04 +00:00
parent 155a973597
commit dfe851e02f
6 changed files with 17 additions and 11 deletions

View File

@@ -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();