Merge branch 'master' of D:\Git_New\fgdata
This commit is contained in:
commit
89005caa40
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ var update = func {
|
||||||
|
|
||||||
var selected_tanks = [];
|
var selected_tanks = [];
|
||||||
foreach (var t; tanks) {
|
foreach (var t; tanks) {
|
||||||
var cap = t.getNode("capacity-gal_us",0).getValue();
|
var cap = t.getNode("capacity-gal_us",0);
|
||||||
if (cap > 0.01 and t.getNode("selected").getBoolValue())
|
if ((cap!=nil) and (cap.getValue() > 0.01) and t.getNode("selected").getBoolValue())
|
||||||
append(selected_tanks, t);
|
append(selected_tanks, t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue