remove my beloved removeChildren() ... sniff
This commit is contained in:
parent
9f0397a720
commit
af78f45550
1 changed files with 4 additions and 1 deletions
|
@ -484,6 +484,10 @@ FGInput::_init_joystick ()
|
|||
js_node->setStringValue("id", name);
|
||||
}
|
||||
}
|
||||
|
||||
// get rid of unused config nodes
|
||||
for (unsigned int m = 0; m < js_named.size(); m++)
|
||||
js_nodes->removeChild("js-named", js_named[m]->getIndex(), false);
|
||||
}
|
||||
|
||||
|
||||
|
@ -492,7 +496,6 @@ FGInput::_postinit_joystick()
|
|||
{
|
||||
FGNasalSys *nasalsys = (FGNasalSys *)globals->get_subsystem("nasal");
|
||||
SGPropertyNode *js_nodes = fgGetNode("/input/joysticks");
|
||||
js_nodes->removeChildren("js-named");
|
||||
|
||||
for (int i = 0; i < MAX_JOYSTICKS; i++) {
|
||||
SGPropertyNode_ptr js_node = js_nodes->getChild("js", i);
|
||||
|
|
Loading…
Add table
Reference in a new issue