mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix broken iteration when clearing ATO.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2046.
This commit is contained in:
parent
2c041081c9
commit
ad37dcce44
@ -25,5 +25,5 @@ class AirTaskingOrder:
|
|||||||
def clear(self) -> None:
|
def clear(self) -> None:
|
||||||
"""Removes all packages from the ATO."""
|
"""Removes all packages from the ATO."""
|
||||||
# Remove all packages individually so the database gets updated.
|
# Remove all packages individually so the database gets updated.
|
||||||
for package in self.packages:
|
for package in list(self.packages):
|
||||||
self.remove_package(package)
|
self.remove_package(package)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user