fix runtime error where dictionary size changes (#594)

This commit is contained in:
Druss99
2025-10-19 20:10:19 -04:00
committed by GitHub
parent f7ee923cbf
commit 9b96b7be26

View File

@@ -367,7 +367,7 @@ class MissionResultsProcessor:
source.base.commit_losses(moved_units)
# Also transfer pending deliveries.
for unit_type, count in source.ground_unit_orders.units.items():
for unit_type, count in list(source.ground_unit_orders.units.items()):
move_count = int(count * move_factor)
source.ground_unit_orders.sell({unit_type: move_count})
destination.ground_unit_orders.order({unit_type: move_count})