mirror of https://github.com/axmolengine/axmol.git
Enumerate getChildren() instead of _children.
This commit is contained in:
parent
c9306a053f
commit
c54513bb13
|
@ -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