Skip to content

Commit

Permalink
fixed bug in route waypoint deletion for routes with only one waypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jooste committed Nov 8, 2017
1 parent 9fe1c81 commit ded64bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluesky/traffic/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ def delwpt(self, delwpname):
# Look up waypoint
idx = -1
i = len(self.wpname)
while idx == -1 and i > 1:
while idx == -1 and i > 0:
i = i-1
if self.wpname[i].upper() == delwpname.upper():
idx = i
Expand Down

0 comments on commit ded64bc

Please sign in to comment.