1
0
Fork 0

Fix a problem which was introduced by the previous patch

This commit is contained in:
ehofman 2003-10-16 19:51:59 +00:00
parent 8308d47e8d
commit c01b4dce67

View file

@ -62,7 +62,7 @@ FGElectricalSupplier::FGElectricalSupplier ( SGPropertyNode *node ) {
for ( i = 0; i < node->nChildren(); ++i ) { for ( i = 0; i < node->nChildren(); ++i ) {
SGPropertyNode *child = node->getChild(i); SGPropertyNode *child = node->getChild(i);
// cout << " scanning: " << child->getName() << endl; // cout << " scanning: " << child->getName() << endl;
if ( child->getName() == "prop" ) { if ( !strcmp(child->getName(), "prop") ) {
string prop = child->getStringValue(); string prop = child->getStringValue();
// cout << " Adding prop = " << prop << endl; // cout << " Adding prop = " << prop << endl;
add_prop( prop ); add_prop( prop );
@ -107,7 +107,7 @@ FGElectricalBus::FGElectricalBus ( SGPropertyNode *node ) {
int i; int i;
for ( i = 0; i < node->nChildren(); ++i ) { for ( i = 0; i < node->nChildren(); ++i ) {
SGPropertyNode *child = node->getChild(i); SGPropertyNode *child = node->getChild(i);
if ( child->getName() == "prop" ) { if ( !strcmp(child->getName(), "prop") ) {
string prop = child->getStringValue(); string prop = child->getStringValue();
add_prop( prop ); add_prop( prop );
} }
@ -122,7 +122,7 @@ FGElectricalOutput::FGElectricalOutput ( SGPropertyNode *node ) {
int i; int i;
for ( i = 0; i < node->nChildren(); ++i ) { for ( i = 0; i < node->nChildren(); ++i ) {
SGPropertyNode *child = node->getChild(i); SGPropertyNode *child = node->getChild(i);
if ( child->getName() == "prop" ) { if ( !strcmp(child->getName(), "prop") ) {
string prop = child->getStringValue(); string prop = child->getStringValue();
add_prop( prop ); add_prop( prop );
} }