Fix routing

This commit is contained in:
Victor Shcherb 2020-05-17 13:21:59 +02:00
parent 7589610a27
commit 684e2d3d36

View file

@ -840,14 +840,8 @@ public class TransportRoutePlanner {
long stopId = stop.getId();
TransportStop multifileStop = loadedTransportStops.get(stopId);
int[] rrs = stop.getReferencesToRoutes();
// TODO what is this?
if (multifileStop == stop) {
// clear up so it won't be used as it is multi file stop
stop.setReferencesToRoutes(null);
} else {
// add other routes
stop.setReferencesToRoutes(null);
}
if (rrs != null && !multifileStop.isDeleted()) {
for (int rr : rrs) {
TransportRoute route = localFileRoutes.get(rr);