Skip to content

Commit

Permalink
Release callsigns when deleting flights (#3455)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhexu14 authored Nov 7, 2024
1 parent 9ab5d0e commit 14ccc07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions game/commander/packagebuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 14ccc07

Please sign in to comment.