From 14ccc0753df0cb1298e14b6034ed33ca9042de9b Mon Sep 17 00:00:00 2001 From: zhexu14 <64713351+zhexu14@users.noreply.github.com> Date: Thu, 7 Nov 2024 21:33:43 +1100 Subject: [PATCH] Release callsigns when deleting flights (#3455) --- game/commander/packagebuilder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/commander/packagebuilder.py b/game/commander/packagebuilder.py index ad20eb72e..80bc727e2 100644 --- a/game/commander/packagebuilder.py +++ b/game/commander/packagebuilder.py @@ -104,4 +104,6 @@ def release_planned_aircraft(self) -> None: """Returns any planned flights to the inventory.""" flights = list(self.package.flights) for flight in flights: + if flight.callsign is not None: + self.callsign_generator.release_callsign(flight.callsign) self.package.remove_flight(flight)