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
parent 452848fd2a
commit 24a6c5995b

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