From: mfranz Date: Fri, 28 Apr 2006 12:14:23 +0000 (+0000) Subject: what about using the right variable? X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ce8e28f1f5a3020f0f7fe583aa4eab409f8ae813;p=flightgear.git what about using the right variable? --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 4c55fe8d9..1701716ef 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -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,