changeset 13865:9800af66dccb draft

(svn r18394) -Fix (r18373): one couldn't manually send a RV to a depot... but why compilers haven't complained about this?
author rubidium <rubidium@openttd.org>
date Fri, 04 Dec 2009 00:46:22 +0000
parents defa06be1acb
children 65a8c090e980
files src/pathfinder/yapf/yapf_road.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/pathfinder/yapf/yapf_road.cpp
+++ b/src/pathfinder/yapf/yapf_road.cpp
@@ -485,5 +485,5 @@
 	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;
 }