This commit is contained in:
MadWasp79 2020-02-06 13:34:16 +02:00
parent 017a63f657
commit cbc55ede29

View file

@ -1739,10 +1739,12 @@ public class RouteResultPreparation {
public void remove() {
}
};
} else {
RouteSegment rt = ctx.loadRouteSegment(road.getPoint31XTile(pointInd), road.getPoint31YTile(pointInd), ctx.config.memoryLimitation,
recalculation);
} else if (recalculation) {
RouteSegment rt = ctx.loadRouteSegment(road.getPoint31XTile(pointInd), road.getPoint31YTile(pointInd), ctx.config.memoryLimitation);
it = rt == null ? null : rt.getIterator();
} else {
// Here we assume that all segments should be attached by native
it = null;
}
// try to attach all segments except with current id
while (it != null && it.hasNext()) {