1
0
Fork 0

Fixed so that 2D panel bindings work again.

This commit is contained in:
david 2002-12-23 19:16:58 +00:00
parent 63672604bf
commit f85b9589da
2 changed files with 9 additions and 3 deletions

View file

@ -89,13 +89,16 @@ FGBinding::FGBinding ()
}
FGBinding::FGBinding (const SGPropertyNode * node)
: _command(0),
_arg(0),
_setting(0)
{
FGBinding();
read(node);
}
FGBinding::~FGBinding ()
{
delete _arg; // Delete the saved arguments
}
void
@ -119,7 +122,10 @@ FGBinding::read (const SGPropertyNode * node)
return;
}
_arg = (SGPropertyNode *)node;
delete _arg;
_arg = new SGPropertyNode;
_setting = 0;
copyProperties(node, _arg); // FIXME: don't use whole node!!!
}
void

View file

@ -145,7 +145,7 @@ private:
string _command_name;
SGCommandMgr::command_t _command;
mutable SGPropertyNode_ptr _arg;
mutable SGPropertyNode * _arg;
mutable SGPropertyNode_ptr _setting;
};