(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

@@ -72,7 +72,7 @@ struct RoadVehicle : public Vehicle {
RoadVehicle() { this->type = VEH_ROAD; }
/** We want to 'destruct' the right class. */
virtual ~RoadVehicle() {}
virtual ~RoadVehicle() { this->PreDestructor(); }
const char *GetTypeString() const { return "road vehicle"; }
void MarkDirty();