1
0
Fork 0

F-PLN page: fix index = 0

This commit is contained in:
Jonathan Redpath 2022-02-13 10:01:11 +00:00
parent a12b16ff45
commit de296916ed

View file

@ -432,7 +432,9 @@ var fplnPage = { # this one is only created once, and then updated - remember th
decelShow = getprop("/instrumentation/nd/symbols/decel/show");
var startingIndex = fmgc.flightPlanController.currentToWptIndex.getValue() == -1 ? 0 : fmgc.flightPlanController.currentToWptIndex.getValue() - 1;
startingIndex == -1 ? 0 : startingIndex;
# Situation where currentIndex is equal to 0
startingIndex = (startingIndex == -1 ? 0 : startingIndex);
for (var i = startingIndex; i < me.plan.getPlanSize(); i += 1) {
if (!me.temporaryFlagFpln and decelShow) {