Fix deletion of waypoints.

`FlightPlan.waypoints` returns a list created from the iterator now, so
removing items from that list does not actually alter the flight plan.

Fixes https://github.com/Khopa/dcs_liberation/issues/489
This commit is contained in:
Dan Albert
2020-12-06 15:32:28 -08:00
parent b5ff32c5b6
commit b0b9c1c8e6
4 changed files with 2 additions and 8 deletions

View File

@@ -69,8 +69,6 @@ class FlightPlan:
"""A list of all waypoints in the flight plan, in order."""
return list(self.iter_waypoints())
def iter_waypoints(self) -> Iterator[FlightWaypoint]:
"""Iterates over all waypoints in the flight plan, in order."""
raise NotImplementedError