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
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

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