fix a crash if preceding inbounds exist
This commit is contained in:
@@ -110,7 +110,7 @@ class RecedingHorizonControl:
|
|||||||
# search from the back to the front to find the last inbound
|
# search from the back to the front to find the last inbound
|
||||||
for i in range(min(self.FreezedIndex, len(self.Windows)), -1, -1):
|
for i in range(min(self.FreezedIndex, len(self.Windows)), -1, -1):
|
||||||
for inbound in self.Windows[i].Inbounds:
|
for inbound in self.Windows[i].Inbounds:
|
||||||
if runway == inbound.PlannedRunway.Runway.name:
|
if runway == inbound.PlannedRunway.Name:
|
||||||
return inbound
|
return inbound
|
||||||
|
|
||||||
# no inbound found
|
# no inbound found
|
||||||
|
|||||||
Reference in New Issue
Block a user