Fix incorrect conditional.

This commit is contained in:
Dan Albert 2021-06-16 17:23:57 -07:00
parent f727712bfa
commit 34453fa3be

View File

@ -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]