(svn r17335) -Fix (r17333): don't return a pointer as boolean

This commit is contained in:
rubidium 2009-08-31 22:18:17 +00:00
parent 13d41d43b1
commit 5cc6d1f894
1 changed files with 2 additions and 1 deletions

View File

@ -488,7 +488,8 @@ bool YapfFindNearestRoadDepot(const Vehicle *v, int max_distance, TileIndex *dep
/* handle the case when our vehicle is already in the depot tile */
if (IsRoadDepotTile(tile)) {
/* only what we need to return is the Depot* */
return Depot::GetByTile(tile);
*depot_tile = tile;
return true;
}
/* default is YAPF type 2 */