forked from mirror/OpenTTD
(svn r21876) -Codechange: typedef SpecializedVehicleBase and GroundVehicleBase to reduce typing
This commit is contained in:
@@ -97,7 +97,7 @@ struct Train : public GroundVehicle<Train, VEH_TRAIN> {
|
||||
uint16 wait_counter;
|
||||
|
||||
/** We don't want GCC to zero our struct! It already is zeroed and has an index! */
|
||||
Train() : GroundVehicle<Train, VEH_TRAIN>() {}
|
||||
Train() : GroundVehicleBase() {}
|
||||
/** We want to 'destruct' the right class. */
|
||||
virtual ~Train() { this->PreDestructor(); }
|
||||
|
||||
|
Reference in New Issue
Block a user