i’m working with cocos2d and catch this bug
on Initialize function, i plan to create some CCAction* for use later
CCAnimation* animation = CCAnimation::create(); ... CCAction* action = CCRepeatForever::create(CCAnimate::create(animation)); mActions.push_back(action);
and on an other function, i do
CCAction* action = mActions[index]; mSprite->stopAllActions();/// break point here mSprite->runAction(action);
and it throw an error, i try to put break point and see variable ‘action’ is corrupt
can you please tell me what i’m done wrong???