fix error in route initialization

This commit is contained in:
Laura Klünder 2017-11-29 00:00:42 +01:00
parent 353d00cbf2
commit f260b52a6e

View file

@ -32,7 +32,7 @@ class Route:
if self.origin_addition and any(self.origin_addition):
nodes.insert(0, (self.origin_addition[0], None))
nodes[1][1] = self.origin_addition[1]
if self.destination_addition and any(self.origin_addition):
if self.destination_addition and any(self.destination_addition):
nodes.append(self.destination_addition)
items = deque()