mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Added missing call squadron: Optional[Squadron] = None to help avoid reference before assignment error.
This commit is contained in:
parent
48861c53da
commit
150a4dde49
@ -564,6 +564,7 @@ class PretenseAircraftGenerator:
|
||||
"""
|
||||
|
||||
aircraft_per_flight = 1
|
||||
squadron: Optional[Squadron] = None
|
||||
if (cp.has_helipads or isinstance(cp, Airfield)) and not cp.is_fleet:
|
||||
flight_type = FlightType.AIR_ASSAULT
|
||||
squadron = self.generate_pretense_squadron(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user