From bc3bdb03fd8e55506283acd11fc040a37234b4e7 Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 1 Sep 2009 20:51:45 +0000 Subject: [PATCH] (svn r17357) -Codechange: some compilers complain about implicit conversion from NULL to bool --- src/yapf/yapf_road.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yapf/yapf_road.cpp b/src/yapf/yapf_road.cpp index 9bc39c3bf4..7c43951fe6 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 */