mirror of https://github.com/OpenTTD/OpenTTD
(svn r18394) -Fix (r18373): one couldn't manually send a RV to a depot... but why compilers haven't complained about this?
parent
d2bcf733f8
commit
f5f6fc16f6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue