mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix incorrect conditional.
This commit is contained in:
parent
f727712bfa
commit
34453fa3be
@ -155,7 +155,7 @@ class ProcurementAi:
|
|||||||
of_class = set(unit_class.unit_list) & faction_units
|
of_class = set(unit_class.unit_list) & faction_units
|
||||||
|
|
||||||
# faction has no access to needed unit type, take a random unit
|
# faction has no access to needed unit type, take a random unit
|
||||||
if len(of_class) is 0:
|
if not of_class:
|
||||||
of_class = faction_units
|
of_class = faction_units
|
||||||
|
|
||||||
affordable_units = [u for u in of_class if db.PRICES[u] <= budget]
|
affordable_units = [u for u in of_class if db.PRICES[u] <= budget]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user