Merge pull request #238 from walterroach/ter_fix

Fixes issue Khopa#203 TER weapons not selectable in custom payload
This commit is contained in:
C. Perreau 2020-10-23 01:07:37 +02:00 committed by GitHub
commit 035bebaab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
## Fixes :
* **[Campaign generator]** Ship group and offshore buildings should not be generated on land anymore
* **[UI]** Missing TER weapons in custom payload now selectable.
# 2.1.5

View File

@ -11,7 +11,7 @@ class QPylonEditor(QComboBox):
self.pylon_number = pylon_number
self.flight = flight
self.possible_loadout = [i for i in self.pylon.__dict__.keys() if i[:1] != '_']
self.possible_loadout = [i for i in self.pylon.__dict__.keys() if i[:2] != '__']
if not str(self.pylon_number) in self.flight.loadout.keys():
self.flight.loadout[str(self.pylon_number)] = ""