1
0
Fork 0

create /sim/gui if it doesn't exist

This commit is contained in:
mfranz 2006-03-19 07:10:10 +00:00
parent 0c92519754
commit 9604277484

View file

@ -306,7 +306,7 @@ NewGUI::setStyle (void)
//puSetDefaultStyle();
int which = fgGetInt("/sim/gui/current-style", 0);
SGPropertyNode *sim = globals->get_props()->getNode("sim/gui");
SGPropertyNode *sim = globals->get_props()->getNode("sim/gui", true);
SGPropertyNode *n = sim->getChild("style", which);
if (!n)
n = sim->getChild("style", 0, true);