From e174c1b14722c53732095d9e9a46feb74f7fe884 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 5 Jan 2021 00:26:19 -0800 Subject: [PATCH] Fix bug in weapon downgrading. We want the *first* valid replacement, not the last one :) https://github.com/Khopa/dcs_liberation/issues/490 --- gen/aircraft.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gen/aircraft.py b/gen/aircraft.py index e0fde1d0..d9d35770 100644 --- a/gen/aircraft.py +++ b/gen/aircraft.py @@ -935,6 +935,7 @@ class AircraftConflictGenerator: if not fallback.available_on(self.game.date): continue pylon.equip(group, fallback) + break def clear_parking_slots(self) -> None: for cp in self.game.theater.controlpoints: