mirror of https://github.com/axmolengine/axmol.git
small fix to make it compile with std::vector too
This commit is contained in:
parent
6c02102b17
commit
6c2c5f727f
|
@ -697,7 +697,7 @@ void Node::detachChild(Node *child, bool doCleanup)
|
|||
void Node::insertChild(Node* child, int z)
|
||||
{
|
||||
_reorderChildDirty = true;
|
||||
ccArrayAppendObjectWithResize(_children->data, child);
|
||||
_children->addObject(child);
|
||||
child->_setZOrder(z);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue