diff --git a/Aircraft/ufo/ufo.nas b/Aircraft/ufo/ufo.nas index 5371404e1..e1137ae76 100644 --- a/Aircraft/ufo/ufo.nas +++ b/Aircraft/ufo/ufo.nas @@ -648,7 +648,7 @@ var export_flightplan = func { to.getNode("on-ground", 1).setBoolValue(1); to.getNode("ktas", 1).setDoubleValue(100); } - export.getChild("wpt", i, 1).getNode("name", 1).setValue("END"); + export.getChild("wpt", i + 1, 1).getNode("name", 1).setValue("END"); fgcommand("savexml", args); print("flightplan exported to ", path);