Removed some extraneous debugging output. Hey, this one was subtle. Due
to const/no-const variants of the prop->getNode() method, the 2nd bool argument was getting promoted to an int so it would match a method with a const SGPropertyNode * as the first argument. But that made it match the wrong version of prop->getNode() and things were failing. Yikes! This is one I could have stared at for days to figure out so I'm glad I caught on to the problem. :-)
This commit is contained in:
@@ -46,11 +46,6 @@ FGPropertyCondition::FGPropertyCondition ( SGPropertyNode *prop_root,
|
||||
const char *propname )
|
||||
: _node( prop_root->getNode(propname, true) )
|
||||
{
|
||||
cout << "FGPropertyCondition::FGPropertyCondition()" << endl;
|
||||
cout << " prop_root = " << prop_root << endl;
|
||||
cout << " propname = " << propname << endl;
|
||||
_node = prop_root->getNode(propname, true);
|
||||
cout << " _node = " << _node << endl;
|
||||
}
|
||||
|
||||
FGPropertyCondition::~FGPropertyCondition ()
|
||||
|
||||
Reference in New Issue
Block a user