Ver Fonte

fix a crash if preceding inbounds exist

Sven Czarnian há 3 anos atrás
pai
commit
98285869cd
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      aman/sys/RecedingHorizonControl.py

+ 1 - 1
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