(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 f6933e1870
commit ab5fa3add2
6 changed files with 17 additions and 11 deletions

View File

@@ -347,6 +347,8 @@ struct Vehicle : PoolItem<Vehicle, VehicleID, &_Vehicle_pool> {
/** Create a new vehicle */
Vehicle();
/** Destroy all stuff that (still) needs the virtual functions to work properly */
void PreDestructor();
/** We want to 'destruct' the right class. */
virtual ~Vehicle();