소스 검색

fix a crash if preceding inbounds exist

Sven Czarnian 3 년 전
부모
커밋
98285869cd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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