diff options
Diffstat (limited to 'src/aircraft.h')
-rw-r--r-- | src/aircraft.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/aircraft.h b/src/aircraft.h index b6c847812..dc8387f84 100644 --- a/src/aircraft.h +++ b/src/aircraft.h @@ -78,7 +78,13 @@ struct Aircraft FINAL : public SpecializedVehicle<Aircraft, VEH_AIRCRAFT> { int GetSpeedOldUnits() const { return this->vcache.cached_max_speed * 10 / 128; } int GetCurrentMaxSpeed() const { return this->GetSpeedOldUnits(); } Money GetRunningCost() const; - bool IsInDepot() const { return (this->vehstatus & VS_HIDDEN) != 0 && IsHangarTile(this->tile); } + + bool IsInDepot() const + { + assert(this->IsPrimaryVehicle()); + return (this->vehstatus & VS_HIDDEN) != 0 && IsHangarTile(this->tile); + } + bool Tick(); void OnNewDay(); uint Crash(bool flooded = false); |