Fix route calculation

This commit is contained in:
Victor Shcherb 2020-06-04 18:37:49 +02:00
parent 5afe3a90ad
commit c638e01dfd
2 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,6 @@
package net.osmand.router;
import net.osmand.NativeLibrary;
import net.osmand.PlatformUtil;
import net.osmand.binary.BinaryMapIndexReader;
import net.osmand.binary.BinaryMapRouteReaderAdapter.RouteTypeRule;
@ -1740,7 +1741,7 @@ public class RouteResultPreparation {
public void remove() {
}
};
} else if (recalculation) {
} else if (recalculation || ctx.nativeLib == null) {
RouteSegment rt = ctx.loadRouteSegment(road.getPoint31XTile(pointInd), road.getPoint31YTile(pointInd), ctx.config.memoryLimitation);
it = rt == null ? null : rt.getIterator();
} else {