mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
use virtual getChildren for getChildByID
This commit is contained in:
parent
bae22b4e34
commit
fe730ed78b
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ void CCNode::setID(std::string const& id) {
|
|||
}
|
||||
|
||||
CCNode* CCNode::getChildByID(std::string const& id) {
|
||||
for (auto child : CCArrayExt<CCNode*>(m_pChildren)) {
|
||||
for (auto child : CCArrayExt<CCNode*>(this->getChildren())) {
|
||||
if (child->getID() == id) {
|
||||
return child;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue