Probably best to make sure the property is there (even though
"selected" certainly should be)
This commit is contained in:
parent
f2edac1849
commit
168e592e03
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue