(svn r16472) -Codechange: set vehicle type in SpecializedVehicle constructor instead of constructor of each vehicle type
This commit is contained in:
@@ -310,9 +310,6 @@ struct Train : public SpecializedVehicle<Train, VEH_TRAIN> {
|
||||
RailTypeByte railtype;
|
||||
RailTypes compatible_railtypes;
|
||||
|
||||
/** Initializes the Vehicle to a train */
|
||||
Train() { this->type = VEH_TRAIN; }
|
||||
|
||||
/** We want to 'destruct' the right class. */
|
||||
virtual ~Train() { this->PreDestructor(); }
|
||||
|
||||
|
Reference in New Issue
Block a user