mirror of https://github.com/axmolengine/axmol.git
fixed #698:Not invoke init() in the construction of CCSprite
This commit is contained in:
parent
90e2ffc041
commit
a411f4877c
|
@ -198,7 +198,7 @@ public:
|
|||
static CCSprite* spriteWithBatchNode(CCSpriteBatchNode *batchNode, const CCRect& rect);
|
||||
|
||||
public:
|
||||
bool init(void);
|
||||
virtual bool init(void);
|
||||
virtual ~CCSprite(void);
|
||||
CCSprite();
|
||||
|
||||
|
|
|
@ -323,7 +323,6 @@ CCSprite* CCSprite::initWithCGImage(CGImageRef pImage, const char *pszKey)
|
|||
CCSprite::CCSprite()
|
||||
: m_pobTexture(NULL)
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
CCSprite::~CCSprite(void)
|
||||
|
|
Loading…
Reference in New Issue