diff options
Diffstat (limited to 'src/ship.h')
-rw-r--r-- | src/ship.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ship.h b/src/ship.h index 7e1b2ec6d..01e337eea 100644 --- a/src/ship.h +++ b/src/ship.h @@ -20,6 +20,8 @@ void GetShipSpriteSize(EngineID engine, uint &width, uint &height); struct Ship: public SpecializedVehicle<Ship, VEH_SHIP> { TrackBitsByte state; + /** We don't want GCC to zero our struct! It already is zeroed and has an index! */ + Ship() : SpecializedVehicle<Ship, VEH_SHIP>() {} /** We want to 'destruct' the right class. */ virtual ~Ship() { this->PreDestructor(); } |