]> git.mxchange.org Git - flightgear.git/commitdiff
what about using the right variable?
authormfranz <mfranz>
Fri, 28 Apr 2006 12:14:23 +0000 (12:14 +0000)
committermfranz <mfranz>
Fri, 28 Apr 2006 12:14:23 +0000 (12:14 +0000)
src/GUI/dialog.cxx

index 4c55fe8d9335d652ca5167a60ad92aafa9d44494..1701716ef90eca3f1632e2b62912b5baf0215c14 100644 (file)
@@ -384,7 +384,7 @@ FGDialog::updateValues (const char * objectName)
 {
     for (unsigned int i = 0; i < _propertyObjects.size(); i++) {
         const string &name = _propertyObjects[i]->name;
-        if (name.size() && name != objectName)
+        if (objectName && name != objectName)
             continue;
 
         puObject *obj = _propertyObjects[i]->object;
@@ -397,7 +397,7 @@ FGDialog::applyValues (const char * objectName)
 {
     for (unsigned int i = 0; i < _propertyObjects.size(); i++) {
         const string &name = _propertyObjects[i]->name;
-        if (name.size() && name != objectName)
+        if (objectName && name != objectName)
             continue;
 
         copy_from_pui(_propertyObjects[i]->object,