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. :-)
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 ()