diff --git a/Nasal/MCDU/F-PLN.nas b/Nasal/MCDU/F-PLN.nas index 9628b21d..51ec1a1c 100644 --- a/Nasal/MCDU/F-PLN.nas +++ b/Nasal/MCDU/F-PLN.nas @@ -463,10 +463,10 @@ var fplnPage = { # this one is only created once, and then updated - remember th alt_cstr: nil, alt_cstr_type: nil, fly_type: "flyBy", - lat: altnApt.lat, + lat: altnApt[0].lat, leg_bearing: courseAndDistance(findAirportsByICAO(fmgc.FMGCInternal.arrApt)[0], altnApt[0])[0], leg_distance: courseAndDistance(findAirportsByICAO(fmgc.FMGCInternal.arrApt)[0], altnApt[0])[1], - lon: altnApt.lon, + lon: altnApt[0].lon, speed_cstr: nil, speed_cstr_type: nil, wp_name: fmgc.FMGCInternal.altAirport,