From 168e592e039644681a2fd6f2084005abdba0ed20 Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 12 Aug 2004 18:49:13 +0000 Subject: [PATCH] Probably best to make sure the property is there (even though "selected" certainly should be) --- Nasal/fuel.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/fuel.nas b/Nasal/fuel.nas index 59acfc13b..0127eef3c 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.getNode("selected").setBoolValue(0); } + else { t.getNode("selected", 1).setBoolValue(0); } } gals = lbs / ppg; t.getNode("level-gal_us").setDoubleValue(gals);