fix Scope::findInNestedListRecursive to check all children
This commit is contained in:
parent
85b1ea21cf
commit
f9b1505115
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue