From f282e722434c9a21f411a26b4000e3361c69999b Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Sat, 11 Jul 2020 15:04:12 +0100 Subject: [PATCH] Bugfixes --- Nasal/MCDU/FUELPRED.nas | 2 +- Nasal/MCDU/INITB.nas | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/MCDU/FUELPRED.nas b/Nasal/MCDU/FUELPRED.nas index b83475c2..ba777b2c 100644 --- a/Nasal/MCDU/FUELPRED.nas +++ b/Nasal/MCDU/FUELPRED.nas @@ -222,7 +222,7 @@ var fuelPredInput = func(key, i) { mcdu_message(i, "USING COST INDEX N", getprop("/FMGC/internal/last-cost-index") or 0); fmgc.FMGCInternal.costIndexSet = 1; fmgc.FMGCInternal.costIndex = getprop("/FMGC/internal/last-cost-index") or 0; - fmgc.FMGCNodes.setValue(fmgc.FMGCInternal.costIndex); + fmgc.FMGCNodes.costIndex.setValue(fmgc.FMGCInternal.costIndex); } } } else if (key == "R4") { diff --git a/Nasal/MCDU/INITB.nas b/Nasal/MCDU/INITB.nas index b64cfd53..dcc3b6b3 100644 --- a/Nasal/MCDU/INITB.nas +++ b/Nasal/MCDU/INITB.nas @@ -237,7 +237,7 @@ var initInputB = func(key, i) { mcdu_message(i, "USING COST INDEX N", getprop("/FMGC/internal/last-cost-index") or 0); fmgc.FMGCInternal.costIndexSet = 1; fmgc.FMGCInternal.costIndex = getprop("/FMGC/internal/last-cost-index") or 0; - fmgc.FMGCNodes.setValue(fmgc.FMGCInternal.costIndex); + fmgc.FMGCNodes.costIndex.setValue(fmgc.FMGCInternal.costIndex); } } } else if (key == "R2" and !getprop("/FMGC/internal/fuel-calculating")) {