forked from mirror/OpenTTD
(svn r18925) -Fix (r18924): a waypoint can have a buoy but no rail waypoint tile
This commit is contained in:
@@ -213,7 +213,8 @@ static const Order *ResolveOrder(VehicleID vehicle_id, AIOrder::OrderPosition or
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user