From 63871077af011553a8f45d7d225c2721fd23033c Mon Sep 17 00:00:00 2001 From: Ming Date: Thu, 22 Jul 2010 06:31:08 +0000 Subject: [PATCH] issue #3: change tow function to virtual --- cocos2dx/include/CCNode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.