1
0
Fork 0

init: make sure /sim/tutorials actually exists

This commit is contained in:
mfranz 2008-11-15 19:40:28 +00:00
parent 81e967a609
commit 9976b71472

View file

@ -99,7 +99,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
menuEnable("fuel-and-payload", fdm == "yasim" or fdm == "jsb");
menuEnable("autopilot", props.globals.getNode("/autopilot/KAP140/locks") == nil);
menuEnable("multiplayer", getprop("/sim/multiplay/txport") or getprop("/sim/multiplay/rxport"));
menuEnable("tutorial-start", size(props.globals.getNode("/sim/tutorials").getChildren("tutorial")));
menuEnable("tutorial-start", size(props.globals.getNode("/sim/tutorials", 1).getChildren("tutorial")));
menuEnable("joystick-info", size(props.globals.getNode("/input/joysticks").getChildren("js")));
var fps = props.globals.getNode("/sim/rendering/fps-display", 1);