1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 08:29:11 +00:00

(svn r18394) -Fix (r18373): one couldn't manually send a RV to a depot... but why compilers haven't complained about this?

This commit is contained in:
rubidium
2009-12-04 00:46:22 +00:00
parent d2bcf733f8
commit f5f6fc16f6

View File

@@ -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;
}