summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-03-06 23:27:14 +0000
committerglx <glx@openttd.org>2007-03-06 23:27:14 +0000
commit0b5cbecd3d097045918a5de1b6d9a386d5d84904 (patch)
treebe9da4643b57528e81aba8cf56f04a8c78da60af
parentd0dd95d0cbef6f5991e65815246ef70b8d5e5a0c (diff)
downloadopenttd-0b5cbecd3d097045918a5de1b6d9a386d5d84904.tar.xz
(svn r9048) -Fix r9040: non-bool used as bool
-rw-r--r--src/aircraft.h2
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*);