From 0af3d5bc4d3456913d9f958a91792e5017fc9e1e Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Wed, 2 Feb 2022 16:40:11 +0000 Subject: [PATCH] Fix ALTN --- Nasal/MCDU/F-PLN.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,