1
0
Fork 0

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

release/1.0
rubidium 2009-12-04 00:46:22 +00:00
parent d2bcf733f8
commit f5f6fc16f6
1 changed files with 1 additions and 1 deletions

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