From 98285869cd19353db6e72c18524b88d2249522e8 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Thu, 11 Nov 2021 20:21:11 +0100 Subject: [PATCH] fix a crash if preceding inbounds exist --- aman/sys/RecedingHorizonControl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aman/sys/RecedingHorizonControl.py b/aman/sys/RecedingHorizonControl.py index f64d477..ce91b4f 100644 --- a/aman/sys/RecedingHorizonControl.py +++ b/aman/sys/RecedingHorizonControl.py @@ -110,7 +110,7 @@ class RecedingHorizonControl: # 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 inbound in self.Windows[i].Inbounds: - if runway == inbound.PlannedRunway.Runway.name: + if runway == inbound.PlannedRunway.Name: return inbound # no inbound found