Fix incorrect conditional.

(cherry picked from commit 34453fa3be)
This commit is contained in:
Dan Albert
2021-06-16 17:23:57 -07:00
parent 7d08e1ee2c
commit ef9e957ef2

View File

@@ -154,7 +154,7 @@ class ProcurementAi:
of_class = set(unit_class.unit_list) & faction_units
# 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
affordable_units = [u for u in of_class if db.PRICES[u] <= budget]