Fixed bug with same item can be added to avoid roads twice
This commit is contained in:
parent
99e8409e37
commit
7d0916bce6
1 changed files with 4 additions and 2 deletions
|
@ -114,8 +114,10 @@ public class RoutingConfiguration {
|
|||
}
|
||||
|
||||
public void addImpassableRoad(RouteDataObject r) {
|
||||
impassableRoadIds.add(r.id);
|
||||
impassableRoads.add(r);
|
||||
if (!impassableRoadIds.contains(r.id)){
|
||||
impassableRoadIds.add(r.id);
|
||||
impassableRoads.add(r);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue