Fix case of unused aircraft not spawning.

This function was exiting too early causing unused aircraft to stop
being spawned at *any* airfield as soon as the first full airfield was
found.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1566
This commit is contained in:
Dan Albert
2021-10-17 13:03:15 -07:00
parent 0fd911feb1
commit 702e29b54b
2 changed files with 3 additions and 2 deletions

View File

@@ -659,8 +659,8 @@ class AircraftConflictGenerator:
try:
self._spawn_unused_for(squadron, country, faction)
except NoParkingSlotError:
# If we run out of parking, stop spawning aircraft.
return
# If we run out of parking, stop spawning aircraft at this base.
break
def _spawn_unused_for(
self, squadron: Squadron, country: Country, faction: Faction