mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix exception after new payload file was saved
When a new payload file would be saved, the subsequent flight would always throw an exception (until Retribution would be restarted) because the payload_cache wasn't updated until now.
This commit is contained in:
@@ -123,6 +123,7 @@ class QLoadoutEditor(QGroupBox):
|
||||
f.write("local unitPayloads = ")
|
||||
f.write(lua.dumps(payloads, indent=1))
|
||||
f.write("\nreturn unitPayloads")
|
||||
self.flight.unit_type.dcs_unit_type.add_to_payload_cache(payload_file)
|
||||
self.saved.emit(payload_name)
|
||||
QMessageBox.information(
|
||||
QWidget(),
|
||||
|
||||
Reference in New Issue
Block a user