(svn r16472) -Codechange: set vehicle type in SpecializedVehicle constructor instead of constructor of each vehicle type
This commit is contained in:
@@ -100,9 +100,6 @@ struct Aircraft : public SpecializedVehicle<Aircraft, VEH_AIRCRAFT> {
|
||||
StationID targetairport;
|
||||
byte state;
|
||||
|
||||
/** Initializes the Vehicle to an aircraft */
|
||||
Aircraft() { this->type = VEH_AIRCRAFT; }
|
||||
|
||||
/** We want to 'destruct' the right class. */
|
||||
virtual ~Aircraft() { this->PreDestructor(); }
|
||||
|
||||
|
Reference in New Issue
Block a user