Minor bugfix in squadron transfer destination combobox

This commit is contained in:
Raffson 2022-12-26 01:55:45 +01:00
parent 00ab0c4be2
commit 6966b14c6b
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -124,7 +124,10 @@ class SquadronDestinationComboBox(QComboBox):
continue
if not control_point.can_operate(self.squadron.aircraft):
continue
if control_point.unclaimed_parking() < size:
if (
self.squadron.destination is not control_point
and control_point.unclaimed_parking() < size
):
continue
yield control_point