1
0
Fork 0

(svn r18925) -Fix (r18924): a waypoint can have a buoy but no rail waypoint tile

release/1.0
yexo 2010-01-27 13:06:58 +00:00
parent 849e676410
commit ea7c90d471
1 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,8 @@ static const Order *ResolveOrder(VehicleID vehicle_id, AIOrder::OrderPosition or
if (wp->TileBelongsToRailStation(t)) return t; if (wp->TileBelongsToRailStation(t)) return t;
} }
} }
return INVALID_TILE; /* If the waypoint has no rail waypoint tiles, it must have a buoy */
return wp->xy;
} }
default: return INVALID_TILE; default: return INVALID_TILE;
} }