mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 21:33:51 +00:00
(svn r17335) -Fix (r17333): don't return a pointer as boolean
This commit is contained in:
parent
13d41d43b1
commit
5cc6d1f894
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user