mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix wrong serialization when saving payload in new file
This commit is contained in:
parent
85bbda4234
commit
b8cce988f8
@ -120,9 +120,11 @@ class QLoadoutEditor(QGroupBox):
|
||||
with payload_file.open("w", encoding="utf-8") as f:
|
||||
payloads = {
|
||||
"name": f"{self.flight.unit_type.dcs_unit_type.id}",
|
||||
"payloads": DcsPayload.from_flight(
|
||||
self.flight, payload_name
|
||||
).to_dict(),
|
||||
"payloads": {
|
||||
1: DcsPayload.from_flight(
|
||||
self.flight, payload_name
|
||||
).to_dict(),
|
||||
},
|
||||
"unitType": f"{self.flight.unit_type.dcs_unit_type.id}",
|
||||
}
|
||||
f.write("local unitPayloads = ")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user