mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix A-10A payload bug leading to uneditable flight
This commit is contained in:
parent
36ef246fcd
commit
a7d65866e8
@ -4,6 +4,7 @@
|
||||
## Features/Improvements
|
||||
|
||||
## Fixes
|
||||
* **[UI/UX]** A-10A flights can be edited again.
|
||||
|
||||
|
||||
# Retribution v1.3.1
|
||||
|
||||
@ -137,11 +137,15 @@ class Loadout:
|
||||
continue
|
||||
name = payload["name"]
|
||||
pylons = payload["pylons"]
|
||||
yield Loadout(
|
||||
name,
|
||||
{p["num"]: Weapon.with_clsid(p["CLSID"]) for p in pylons.values()},
|
||||
date=None,
|
||||
)
|
||||
try:
|
||||
yield Loadout(
|
||||
name,
|
||||
{p["num"]: Weapon.with_clsid(p["CLSID"]) for p in pylons.values()},
|
||||
date=None,
|
||||
)
|
||||
except KeyError:
|
||||
# invalid loadout
|
||||
continue
|
||||
|
||||
@staticmethod
|
||||
def valid_payload(pylons: Dict[int, Dict[str, str]]) -> bool:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user