diff --git a/gui/dialogs/scenario.xml b/gui/dialogs/scenario.xml index 7f17f6c7b..647521382 100644 --- a/gui/dialogs/scenario.xml +++ b/gui/dialogs/scenario.xml @@ -203,11 +203,9 @@ var path = getprop("/sim/fg-root") ~ "/AI"; scenarios = []; -i=0; + foreach(var s; props.globals.getNode("sim/ai/scenarios",1).getChildren("scenario")){ append(scenarios, s); -print(s.getNode("name").getValue()); i+=1; - } # sort the scenarios into alpha order. scenarios = sort (scenarios, func (a,b) {cmp(a.getNode("name").getValue(), b.getNode("name").getValue());}); @@ -219,7 +217,6 @@ print(s.getNode("name").getValue()); i+=1; col = 0; for(i=0;i colsz){