Fix navigation
This commit is contained in:
parent
59c8b5d39c
commit
a7b01c686c
1 changed files with 5 additions and 3 deletions
|
@ -46,10 +46,12 @@ public class RouteSegmentResult {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void copyPreattachedRoutes(RouteSegmentResult toCopy, int shift) {
|
public void copyPreattachedRoutes(RouteSegmentResult toCopy, int shift) {
|
||||||
|
if(toCopy.preAttachedRoutes != null) {
|
||||||
int l = toCopy.preAttachedRoutes.length - shift;
|
int l = toCopy.preAttachedRoutes.length - shift;
|
||||||
preAttachedRoutes = new RouteSegmentResult[l][];
|
preAttachedRoutes = new RouteSegmentResult[l][];
|
||||||
System.arraycopy(toCopy.preAttachedRoutes, shift, preAttachedRoutes, 0, l);
|
System.arraycopy(toCopy.preAttachedRoutes, shift, preAttachedRoutes, 0, l);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public RouteSegmentResult[] getPreAttachedRoutes(int routeInd) {
|
public RouteSegmentResult[] getPreAttachedRoutes(int routeInd) {
|
||||||
int st = Math.abs(routeInd - startPointIndex);
|
int st = Math.abs(routeInd - startPointIndex);
|
||||||
|
|
Loading…
Reference in a new issue