Fix purchasing past 0 budget for ground units too.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1032
This commit is contained in:
Dan Albert 2021-05-18 19:23:29 -07:00
parent f4b64370bb
commit 242f00390d

View File

@ -68,6 +68,8 @@ class QArmorRecruitmentMenu(QFrame, QRecruitBehaviour):
self.setLayout(main_layout)
def enable_purchase(self, unit_type: Type[UnitType]) -> bool:
if not super().enable_purchase(unit_type):
return False
return self.cp.has_ground_unit_source(self.game_model.game)
def enable_sale(self, unit_type: Type[UnitType]) -> bool: