mirror of https://github.com/axmolengine/axmol.git
issue #35: fix bug of startWithTarget()
This commit is contained in:
parent
a934e49e31
commit
1873732182
|
@ -1745,7 +1745,10 @@ void CCAnimate::startWithTarget(cocos2d::NSObject *pTarget)
|
|||
__super::startWithTarget(pTarget);
|
||||
CCSprite *pSprite = dynamic_cast<CCSprite*>(pTarget);
|
||||
|
||||
m_pOrigFrame->release();
|
||||
if (m_pOrigFrame)
|
||||
{
|
||||
m_pOrigFrame->release();
|
||||
}
|
||||
|
||||
if (m_bRestoreOriginalFrame)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue