From fc467b62e05afc126ba8aa653b58b0ef8fb42e9d Mon Sep 17 00:00:00 2001 From: Raffson Date: Sun, 18 Feb 2024 11:48:25 +0100 Subject: [PATCH] Add comment --- game/ato/flightplans/formationattack.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/game/ato/flightplans/formationattack.py b/game/ato/flightplans/formationattack.py index c684d763..3c923594 100644 --- a/game/ato/flightplans/formationattack.py +++ b/game/ato/flightplans/formationattack.py @@ -255,6 +255,9 @@ class FormationAttackBuilder(IBuilder[FlightPlanT, LayoutT], ABC): @property def primary_flight_is_air_assault(self) -> bool: if self.flight is self.package.primary_flight: + # Can't call self.package.primary_flight.flight_plan here + # because the flight-plan wasn't created yet. + # Calling the fligh_plan property would result in infinite recursion return self.flight.flight_type == FlightType.AIR_ASSAULT else: assert self.package.primary_flight is not None