summaryrefslogtreecommitdiff
path: root/src/aircraft.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/aircraft.h')
-rw-r--r--src/aircraft.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/aircraft.h b/src/aircraft.h
index 1977b8249..b782aae50 100644
--- a/src/aircraft.h
+++ b/src/aircraft.h
@@ -100,6 +100,8 @@ struct Aircraft : public SpecializedVehicle<Aircraft, VEH_AIRCRAFT> {
StationID targetairport;
byte state;
+ /** We don't want GCC to zero our struct! It already is zeroed and has an index! */
+ Aircraft() : SpecializedVehicle<Aircraft, VEH_AIRCRAFT>() {}
/** We want to 'destruct' the right class. */
virtual ~Aircraft() { this->PreDestructor(); }