diff options
author | glx <glx@openttd.org> | 2007-03-06 23:27:14 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-03-06 23:27:14 +0000 |
commit | 0b5cbecd3d097045918a5de1b6d9a386d5d84904 (patch) | |
tree | be9da4643b57528e81aba8cf56f04a8c78da60af | |
parent | d0dd95d0cbef6f5991e65815246ef70b8d5e5a0c (diff) | |
download | openttd-0b5cbecd3d097045918a5de1b6d9a386d5d84904.tar.xz |
(svn r9048) -Fix r9040: non-bool used as bool
-rw-r--r-- | src/aircraft.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft.h b/src/aircraft.h index f020b2504..545464e52 100644 --- a/src/aircraft.h +++ b/src/aircraft.h @@ -53,7 +53,7 @@ static inline bool IsAircraftBuildableAtStation(EngineID engine, TileIndex tile) const AirportFTAClass *apc = st->Airport(); const AircraftVehicleInfo *avi = AircraftVehInfo(engine); - return apc->flags & (avi->subtype & AIR_CTOL ? AirportFTAClass::AIRPLANES : AirportFTAClass::HELICOPTERS); + return (apc->flags & (avi->subtype & AIR_CTOL ? AirportFTAClass::AIRPLANES : AirportFTAClass::HELICOPTERS)) != 0; } uint16 AircraftDefaultCargoCapacity(CargoID cid, const AircraftVehicleInfo*); |