diff --git a/cocos2dx/cocoa/CCObject.h b/cocos2dx/cocoa/CCObject.h index edfb7aeae6..b70e184edb 100644 --- a/cocos2dx/cocoa/CCObject.h +++ b/cocos2dx/cocoa/CCObject.h @@ -53,7 +53,7 @@ public: /** returns a copy of the object. @deprecated Use clone() instead */ - CC_DEPRECATED_ATTRIBUTE void copy() const + CC_DEPRECATED_ATTRIBUTE Object* copy() const { // use "clone" instead CC_ASSERT(false);