From f5f6fc16f6425a7b35dd9b461628a65bcb92eacb Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 4 Dec 2009 00:46:22 +0000 Subject: (svn r18394) -Fix (r18373): one couldn't manually send a RV to a depot... but why compilers haven't complained about this? --- src/pathfinder/yapf/yapf_road.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pathfinder') diff --git a/src/pathfinder/yapf/yapf_road.cpp b/src/pathfinder/yapf/yapf_road.cpp index 789100b3f..09df7ccf1 100644 --- a/src/pathfinder/yapf/yapf_road.cpp +++ b/src/pathfinder/yapf/yapf_road.cpp @@ -485,5 +485,5 @@ FindDepotData YapfRoadVehicleFindNearestDepot(const RoadVehicle *v, int max_dist FindDepotData fdd; bool ret = pfnFindNearestDepot(v, tile, trackdir, max_distance, &fdd.tile); fdd.best_length = ret ? max_distance / 2 : UINT_MAX; // some fake distance or NOT_FOUND - return ret; + return fdd; } -- cgit v1.2.3-70-g09d2