fixed #698:Not invoke init() in the construction of CCSprite

This commit is contained in:
minggo 2011-08-29 11:00:31 +08:00
parent 90e2ffc041
commit a411f4877c
2 changed files with 1 additions and 2 deletions

View File

@ -198,7 +198,7 @@ public:
static CCSprite* spriteWithBatchNode(CCSpriteBatchNode *batchNode, const CCRect& rect); static CCSprite* spriteWithBatchNode(CCSpriteBatchNode *batchNode, const CCRect& rect);
public: public:
bool init(void); virtual bool init(void);
virtual ~CCSprite(void); virtual ~CCSprite(void);
CCSprite(); CCSprite();

View File

@ -323,7 +323,6 @@ CCSprite* CCSprite::initWithCGImage(CGImageRef pImage, const char *pszKey)
CCSprite::CCSprite() CCSprite::CCSprite()
: m_pobTexture(NULL) : m_pobTexture(NULL)
{ {
init();
} }
CCSprite::~CCSprite(void) CCSprite::~CCSprite(void)