1
0
Fork 0

what about using the right variable?

This commit is contained in:
mfranz 2006-04-28 12:14:23 +00:00
parent 29ff85142b
commit ce8e28f1f5

View file

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