summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-09-01 20:51:45 +0000
committersmatz <smatz@openttd.org>2009-09-01 20:51:45 +0000
commitbc3bdb03fd8e55506283acd11fc040a37234b4e7 (patch)
tree4a5d636547d6621277f18fb56dc36f61829f3d26 /src
parenta4af668986ce4a2744a4c481e018b32b683b0fce (diff)
downloadopenttd-bc3bdb03fd8e55506283acd11fc040a37234b4e7.tar.xz
(svn r17357) -Codechange: some compilers complain about implicit conversion from NULL to bool
Diffstat (limited to 'src')
-rw-r--r--src/yapf/yapf_road.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yapf/yapf_road.cpp b/src/yapf/yapf_road.cpp
index 9bc39c3bf..7c43951fe 100644
--- a/src/yapf/yapf_road.cpp
+++ b/src/yapf/yapf_road.cpp
@@ -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 */