1
0
Fork 0

the harrier triggers a Nasal bug: "continue" doesn't execute the "for"

loop's reinitialization part. We have to do that manually for now, or
get caught in an endless loop, until fgfs has mercy and segfaults.
This commit is contained in:
mfranz 2006-05-25 18:31:00 +00:00
parent d01ec5042b
commit 249dbd3303

View file

@ -422,7 +422,7 @@ showWeightDialog = func {
cap = t.getNode("capacity-gal_us", 1).getValue();
# Hack, to ignore the "ghost" tanks created by the C++ code.
if(cap == nil or cap < 1) { continue; }
if(cap == nil or cap < 1) { i+=1; continue; }
title = tcell(fuelTable, "text", i+1, 0);
title.set("label", tname);