mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 19:33:34 +00:00
(svn r9048) -Fix r9040: non-bool used as bool
This commit is contained in:
parent
d0dd95d0cb
commit
0b5cbecd3d
@ -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*);
|
||||
|
Loading…
Reference in New Issue
Block a user