Fix bug in weapon downgrading.

We want the *first* valid replacement, not the last one :)

https://github.com/Khopa/dcs_liberation/issues/490
This commit is contained in:
Dan Albert 2021-01-05 00:26:19 -08:00
parent 7ef191be2a
commit e174c1b147

View File

@ -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: