From 017a63f65732bcf4c98d4098796032b2fc0451e3 Mon Sep 17 00:00:00 2001 From: MadWasp79 Date: Thu, 6 Feb 2020 13:07:28 +0200 Subject: [PATCH] typo --- .../src/main/java/net/osmand/router/RoutingContext.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java b/OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java index db6d35ec0d..6224ebdac0 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/RoutingContext.java @@ -657,10 +657,7 @@ public class RoutingContext { private RouteSegment loadRouteSegment(int x31, int y31, RoutingContext ctx, TLongObjectHashMap excludeDuplications, RouteSegment original, List subregions, int subregionIndex) { access++; - if (routes != null || (searchResult != null && searchResult.objects != null && searchResult.objects.length > 0)) { - if (routes == null) { - setLoadedNative(searchResult, ctx); - } + if (routes != null) { long l = (((long) x31) << 31) + (long) y31; RouteSegment segment = routes.get(l); while (segment != null) {