(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

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