fix Scope::findInNestedListRecursive to check all children

This commit is contained in:
Robert Reif 2011-02-19 13:40:02 -05:00
parent 85b1ea21cf
commit f9b1505115
1 changed files with 2 additions and 1 deletions

View File

@ -1422,7 +1422,8 @@ Scope * Scope::findInNestedListRecursive(const std::string & name)
for (it = nestedList.begin(); it != nestedList.end(); ++it)
{
Scope *child = (*it)->findInNestedListRecursive(name);
return child;
if (child)
return child;
}
return 0;
}