fix Scope::findInNestedListRecursive to check all children
This commit is contained in:
parent
85b1ea21cf
commit
f9b1505115
|
@ -1422,6 +1422,7 @@ Scope * Scope::findInNestedListRecursive(const std::string & name)
|
|||
for (it = nestedList.begin(); it != nestedList.end(); ++it)
|
||||
{
|
||||
Scope *child = (*it)->findInNestedListRecursive(name);
|
||||
if (child)
|
||||
return child;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue