add NULL as the last parameter to prevent crashing when creating CCSequence

This commit is contained in:
minggo 2012-08-27 10:47:32 +08:00
parent 94af6928f2
commit a80c282844
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ void performanceActions(CCSprite* pSprite)
float growDuration = 0.5f + (rand() % 1000) / 500.0f;
CCActionInterval *grow = CCScaleBy::create(growDuration, 0.5f, 0.5f);
CCAction *permanentScaleLoop = CCRepeatForever::create((CCActionInterval *)CCSequence::create(grow, grow->reverse()));
CCAction *permanentScaleLoop = CCRepeatForever::create((CCActionInterval *)CCSequence::create(grow, grow->reverse(), NULL));
pSprite->runAction(permanentScaleLoop);
}