From c01b4dce670c94ab5d714d2f96b614db8b3269a6 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 16 Oct 2003 19:51:59 +0000 Subject: [PATCH] Fix a problem which was introduced by the previous patch --- src/Systems/electrical.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Systems/electrical.cxx b/src/Systems/electrical.cxx index 0091e62c6..d2bb01c59 100644 --- a/src/Systems/electrical.cxx +++ b/src/Systems/electrical.cxx @@ -62,7 +62,7 @@ FGElectricalSupplier::FGElectricalSupplier ( SGPropertyNode *node ) { for ( i = 0; i < node->nChildren(); ++i ) { SGPropertyNode *child = node->getChild(i); // cout << " scanning: " << child->getName() << endl; - if ( child->getName() == "prop" ) { + if ( !strcmp(child->getName(), "prop") ) { string prop = child->getStringValue(); // cout << " Adding prop = " << prop << endl; add_prop( prop ); @@ -107,7 +107,7 @@ FGElectricalBus::FGElectricalBus ( SGPropertyNode *node ) { int i; for ( i = 0; i < node->nChildren(); ++i ) { SGPropertyNode *child = node->getChild(i); - if ( child->getName() == "prop" ) { + if ( !strcmp(child->getName(), "prop") ) { string prop = child->getStringValue(); add_prop( prop ); } @@ -122,7 +122,7 @@ FGElectricalOutput::FGElectricalOutput ( SGPropertyNode *node ) { int i; for ( i = 0; i < node->nChildren(); ++i ) { SGPropertyNode *child = node->getChild(i); - if ( child->getName() == "prop" ) { + if ( !strcmp(child->getName(), "prop") ) { string prop = child->getStringValue(); add_prop( prop ); } -- 2.39.5