1
0
Fork 0

don't save view-enabled state of nameless views to aircraft config file

(the view may have been removed from the *-set.xml file)
This commit is contained in:
mfranz 2008-01-18 14:16:38 +00:00
parent 47b4d2f98e
commit cce72f08a9

View file

@ -467,6 +467,8 @@ _setlistener("/sim/signals/fdm-initialized", func {
die("\n***\n*\n* Illegal use of reserved view index "
~ index ~ ". Use indices >= 100!\n*\n***");
} elsif (index >= 100 and index < 200) {
if (v.getNode("name") == nil)
continue;
var e = v.getNode("enabled");
if (e != nil) {
aircraft.data.add(e);