protect wp list during alternative run
This commit is contained in:
parent
2f4c125bf5
commit
504f8197e6
@ -623,6 +623,12 @@ public class RoutingEngine extends Thread {
|
||||
if (nearbyTrack != null) {
|
||||
matchedWaypoints.add(nearbyTrack.endPoint);
|
||||
}
|
||||
} else {
|
||||
if (lastTracks.length < matchedWaypoints.size()) {
|
||||
refTracks = new OsmTrack[matchedWaypoints.size()]; // used ways for alternatives
|
||||
lastTracks = new OsmTrack[matchedWaypoints.size()];
|
||||
hasDirectRouting = true;
|
||||
}
|
||||
}
|
||||
|
||||
OsmPath.seg = 1; // set segment counter
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user