mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Extra measure to avoid 0 units in transfer map
This commit is contained in:
parent
0c6c578e35
commit
3060645a26
@ -630,6 +630,8 @@ class PendingTransfers:
|
||||
continue
|
||||
size -= take
|
||||
transfer.units[unit_type] -= take
|
||||
if not transfer.units[unit_type]:
|
||||
to_delete.append(unit_type)
|
||||
units[unit_type] = take
|
||||
for td in to_delete:
|
||||
del transfer.units[td]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user