Fix canceling transfers when the airbase is full.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2955.
This commit is contained in:
Dan Albert 2023-07-13 21:14:30 -07:00
parent 5b935db923
commit aced4d3ef5
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ Saves from 8.x are not compatible with 9.0.0.
## Fixes
* **[Campaign]** Fixed error when canceling squadron transfer if the current location would be exactly full.
* **[Data]** Fixed the class of the Samuel Chase so it can't be picked for a AAA or SHORAD site.
* **[Data]** Allow CH-47D, CH-53E and UH-60A to operate from carriers and LHAs.
* **[Mission Generation]** Restored previous AI behavior for anti-ship missions. A DCS update caused only a single aircraft in a flight to attack. The full flight will now attack like they used to.

View File

@ -376,7 +376,7 @@ class Squadron:
)
return
if self.expected_size_next_turn >= self.location.unclaimed_parking():
if self.expected_size_next_turn > self.location.unclaimed_parking():
raise RuntimeError(f"Not enough parking for {self} at {self.location}.")
self.destination = None
self.cancel_ferry_flights()