From e7628de8570d44d6564a85d66da94081fcf1d09e Mon Sep 17 00:00:00 2001 From: James Chen Date: Fri, 15 Jun 2012 15:36:36 +0800 Subject: [PATCH] fixed a warning in CCScale9Sprite::initWithBatchNode. --- cocos2dx/extensions/CCControlExtension/CCScale9Sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2dx/extensions/CCControlExtension/CCScale9Sprite.cpp b/cocos2dx/extensions/CCControlExtension/CCScale9Sprite.cpp index 13129f0654..fde1a2233f 100644 --- a/cocos2dx/extensions/CCControlExtension/CCScale9Sprite.cpp +++ b/cocos2dx/extensions/CCControlExtension/CCScale9Sprite.cpp @@ -43,7 +43,7 @@ bool CCScale9Sprite::initWithBatchNode(CCSpriteBatchNode* batchnode, CCRect rect } this->m_positionsAreDirty = true; - return this; + return true; } bool CCScale9Sprite::updateWithBatchNode(CCSpriteBatchNode* batchnode, CCRect rect, CCRect capInsets)