From 622a171ac4ff42de483ae68f0dcc565b7da06298 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 7 Jun 2021 19:01:16 -0700 Subject: [PATCH] Move armor TGO purchase off find_unittype. --- qt_ui/windows/groundobject/QGroundObjectMenu.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/qt_ui/windows/groundobject/QGroundObjectMenu.py b/qt_ui/windows/groundobject/QGroundObjectMenu.py index 9df4b454..23c6e3ba 100644 --- a/qt_ui/windows/groundobject/QGroundObjectMenu.py +++ b/qt_ui/windows/groundobject/QGroundObjectMenu.py @@ -340,11 +340,7 @@ class QBuyGroupForGroundObjectDialog(QDialog): buy_ewr_layout.addLayout(stretch, 2, 0) # Armored units - - armored_units = db.find_unittype( - PinpointStrike, faction.name - ) # Todo : refactor this legacy nonsense - for unit in set(armored_units): + for unit in set(faction.ground_units): self.buyArmorCombo.addItem( db.unit_type_name_2(unit) + " [$" + str(db.PRICES[unit]) + "M]", userData=unit,