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:
Dan Albert 2021-11-07 19:25:38 -08:00
parent 2c14a140fe
commit 753b301e88

View File

@ -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