Fixed #4637: Add predefined value indication in cpp

This commit is contained in:
pandamicro 2014-04-02 12:03:42 +08:00
parent 9376c7817f
commit 7019b6e1ab
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ bool Animation::init()
return true;
}
bool Animation::initWithSpriteFrames(const Vector<SpriteFrame*>& frames, float delay, unsigned int loops)
bool Animation::initWithSpriteFrames(const Vector<SpriteFrame*>& frames, float delay/* = 0.0f*/, unsigned int loops/* = 1*/)
{
_delayPerUnit = delay;
_loops = loops;