mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15259 from mxenabled/steerlink/ccnode_do_enumerate
Enumerate getChildren() instead of _children.
This commit is contained in:
commit
034410f5c5
|
@ -903,7 +903,7 @@ bool Node::doEnumerate(std::string name, std::function<bool (Node *)> callback)
|
|||
}
|
||||
|
||||
bool ret = false;
|
||||
for (const auto& child : _children)
|
||||
for (const auto& child : getChildren())
|
||||
{
|
||||
if (std::regex_match(child->_name, std::regex(searchName)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue