mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
fix runtime error where dictionary size changes (#594)
This commit is contained in:
parent
f7ee923cbf
commit
9b96b7be26
@ -367,7 +367,7 @@ class MissionResultsProcessor:
|
|||||||
source.base.commit_losses(moved_units)
|
source.base.commit_losses(moved_units)
|
||||||
|
|
||||||
# Also transfer pending deliveries.
|
# 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)
|
move_count = int(count * move_factor)
|
||||||
source.ground_unit_orders.sell({unit_type: move_count})
|
source.ground_unit_orders.sell({unit_type: move_count})
|
||||||
destination.ground_unit_orders.order({unit_type: move_count})
|
destination.ground_unit_orders.order({unit_type: move_count})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user