diff --git a/src/train.h b/src/train.h --- a/src/train.h +++ b/src/train.h @@ -314,6 +314,8 @@ struct Train : public SpecializedVehicle RailTypeByte railtype; RailTypes compatible_railtypes; + /** We don't want GCC to zero our struct! It already is zeroed and has an index! */ + Train() : SpecializedVehicle() {} /** We want to 'destruct' the right class. */ virtual ~Train() { this->PreDestructor(); }