mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 21:33:51 +00:00
(svn r17357) -Codechange: some compilers complain about implicit conversion from NULL to bool
This commit is contained in:
parent
a4af668986
commit
bc3bdb03fd
@ -482,7 +482,7 @@ bool YapfFindNearestRoadDepot(const Vehicle *v, int max_distance, TileIndex *dep
|
||||
TileIndex tile = v->tile;
|
||||
Trackdir trackdir = v->GetVehicleTrackdir();
|
||||
if ((TrackStatusToTrackdirBits(GetTileTrackStatus(tile, TRANSPORT_ROAD, RoadVehicle::From(v)->compatible_roadtypes)) & TrackdirToTrackdirBits(trackdir)) == 0) {
|
||||
return NULL;
|
||||
return false;
|
||||
}
|
||||
|
||||
/* handle the case when our vehicle is already in the depot tile */
|
||||
|
Loading…
Reference in New Issue
Block a user