diff --git a/Nasal/fuel.nas b/Nasal/fuel.nas index 0bc1c48e9..59acfc13b 100644 --- a/Nasal/fuel.nas +++ b/Nasal/fuel.nas @@ -65,7 +65,7 @@ fuelUpdate = func { # Kill the engines if we're told to, otherwise simply # deselect the tank. if(t.getNode("kill-when-empty", 1).getBoolValue()) { outOfFuel = 1; } - else { t.setBoolValue("selected", 0); } + else { t.getNode("selected").setBoolValue(0); } } gals = lbs / ppg; t.getNode("level-gal_us").setDoubleValue(gals);