summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-04 00:46:22 +0000
committerrubidium <rubidium@openttd.org>2009-12-04 00:46:22 +0000
commitf5f6fc16f6425a7b35dd9b461628a65bcb92eacb (patch)
treef0c95988ea79dd273238e1b92c0280e82b091391 /src
parentd2bcf733f85f0afed24f29b1852662cabee17f06 (diff)
downloadopenttd-f5f6fc16f6425a7b35dd9b461628a65bcb92eacb.tar.xz
(svn r18394) -Fix (r18373): one couldn't manually send a RV to a depot... but why compilers haven't complained about this?
Diffstat (limited to 'src')
-rw-r--r--src/pathfinder/yapf/yapf_road.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}