small fix to make it compile with std::vector too

This commit is contained in:
Ricardo Quesada 2013-08-19 17:33:23 -07:00
parent 6c02102b17
commit 6c2c5f727f
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}