mirror of https://github.com/axmolengine/axmol.git
add NULL as the last parameter to prevent crashing when creating CCSequence
This commit is contained in:
parent
94af6928f2
commit
a80c282844
|
@ -421,7 +421,7 @@ void performanceActions(CCSprite* pSprite)
|
||||||
|
|
||||||
float growDuration = 0.5f + (rand() % 1000) / 500.0f;
|
float growDuration = 0.5f + (rand() % 1000) / 500.0f;
|
||||||
CCActionInterval *grow = CCScaleBy::create(growDuration, 0.5f, 0.5f);
|
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);
|
pSprite->runAction(permanentScaleLoop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue