mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix procurement bug when coalition has no squadrons
If a user removes all squadrons manually, the faction may still contain aircraft but no budget for aircraft should be allocated at all. In such a case, all money should go to ground units...
This commit is contained in:
parent
a1fc92bd00
commit
83eea8974b
@ -59,8 +59,8 @@ class ProcurementAi:
|
||||
):
|
||||
return 0
|
||||
|
||||
# faction has no planes
|
||||
if len(self.faction.aircrafts) == 0:
|
||||
# faction has no planes or no squadrons
|
||||
if len(self.faction.aircrafts) == 0 or len(self.air_wing.squadrons) == 0:
|
||||
return 1
|
||||
|
||||
for cp in self.owned_points:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user