mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +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:
|
||||
"""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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user