Fix broken iteration when clearing ATO.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2046.
This commit is contained in:
Dan Albert 2022-03-20 13:40:57 -07:00
parent 2c041081c9
commit ad37dcce44

View File

@ -25,5 +25,5 @@ class AirTaskingOrder:
def clear(self) -> None:
"""Removes all packages from the ATO."""
# Remove all packages individually so the database gets updated.
for package in self.packages:
for package in list(self.packages):
self.remove_package(package)