This commit is contained in:
MadWasp79 2020-02-06 13:07:28 +02:00
parent f975b3c7e1
commit 017a63f657

View file

@ -657,10 +657,7 @@ public class RoutingContext {
private RouteSegment loadRouteSegment(int x31, int y31, RoutingContext ctx, private RouteSegment loadRouteSegment(int x31, int y31, RoutingContext ctx,
TLongObjectHashMap<RouteDataObject> excludeDuplications, RouteSegment original, List<RoutingSubregionTile> subregions, int subregionIndex) { TLongObjectHashMap<RouteDataObject> excludeDuplications, RouteSegment original, List<RoutingSubregionTile> subregions, int subregionIndex) {
access++; access++;
if (routes != null || (searchResult != null && searchResult.objects != null && searchResult.objects.length > 0)) { if (routes != null) {
if (routes == null) {
setLoadedNative(searchResult, ctx);
}
long l = (((long) x31) << 31) + (long) y31; long l = (((long) x31) << 31) + (long) y31;
RouteSegment segment = routes.get(l); RouteSegment segment = routes.get(l);
while (segment != null) { while (segment != null) {