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