A test Bug on ActionTest : PauseResumeActions

@
void PauseResumeActions::pause(float dt)
{
CCLog(“Pausing”);
CCDirector *director = CCDirector::sharedDirector();
this~~>m_pPausedTargets = director~~>getActionManager()>pauseAllRunningActions;
}
void PauseResumeActions::resume
{
CCLog;
CCDirector *director = CCDirector::sharedDirector;
director
>getActionManager()>resumeTargets;
}
@
m_pPausedTargets <————
crash at it->begin(); why? this is test code … bug?

Found Fix way … just manager m_pPausedTargets yourself

like this…

@
CCSet * tempPuaseList = CCDirector::sharedDirector()>getActionManager>pauseAllRunningActions;
m_lastPauseAction = new CCSet;
CCSetIterator iter = tempPuaseList~~>begin;
for; iter++)
{
m_lastPauseAction~~>addObject(*iter);
}

@

and when resume … delete m_lastPauseAction

that’s all