mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix crash when creating packages.
I'm not sure if this is a symptom of the bug or if this is actually a separate bug, but pushing this for now to make the bug less severe. https://github.com/dcs-liberation/dcs_liberation/issues/1720
This commit is contained in:
parent
2c14a140fe
commit
753b301e88
@ -1125,7 +1125,7 @@ class MapModel(QObject):
|
||||
return None
|
||||
package_index, flight_index = self._selected_flight_index
|
||||
blue = True
|
||||
return self._flights[blue, package_index, flight_index]
|
||||
return self._flights.get((blue, package_index, flight_index))
|
||||
|
||||
def deselect_current_flight(self) -> None:
|
||||
flight = self._selected_flight
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user