Fix crash when deleting waypoints.

self.coalition is used but was never set.
This commit is contained in:
Dan Albert
2022-09-02 21:04:37 -07:00
committed by Raffson
parent 07632e2705
commit 793a87d4fb

View File

@@ -35,6 +35,7 @@ class QFlightWaypointTab(QFrame):
def __init__(self, game: Game, package: Package, flight: Flight):
super(QFlightWaypointTab, self).__init__()
self.game = game
self.coalition = game.coalition_for(player=True)
self.package = package
self.flight = flight