Mercurial > hg > openttd
changeset 6245:3489dc459f82 draft
(svn r9048) -Fix r9040: non-bool used as bool
author | glx <glx@openttd.org> |
---|---|
date | Tue, 06 Mar 2007 23:27:14 +0000 |
parents | 53911c065347 |
children | 36f9fa2bd845 |
files | src/aircraft.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aircraft.h +++ b/src/aircraft.h @@ -53,7 +53,7 @@ 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*);