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