diff --git a/cocos2dx/include/CCNode.h b/cocos2dx/include/CCNode.h index b6b69695d0..1cca3bc8df 100644 --- a/cocos2dx/include/CCNode.h +++ b/cocos2dx/include/CCNode.h @@ -256,13 +256,13 @@ public: It returns self, so you can chain several addChilds. @since v0.7.1 */ - CCNode * addChild(CCNode * child); + virtual CCNode * addChild(CCNode * child); /** Adds a child to the container with a z-order It returns self, so you can chain several addChilds. @since v0.7.1 */ - CCNode * addChild(CCNode * child, int zOrder); + virtual CCNode * addChild(CCNode * child, int zOrder); /** Adds a child to the container with z order and tag It returns self, so you can chain several addChilds.