diff --git a/cocos/2d/CCAnimation.cpp b/cocos/2d/CCAnimation.cpp index 0544a33c7f..3369ccbfa0 100644 --- a/cocos/2d/CCAnimation.cpp +++ b/cocos/2d/CCAnimation.cpp @@ -118,7 +118,7 @@ bool Animation::init() return true; } -bool Animation::initWithSpriteFrames(const Vector& frames, float delay, unsigned int loops) +bool Animation::initWithSpriteFrames(const Vector& frames, float delay/* = 0.0f*/, unsigned int loops/* = 1*/) { _delayPerUnit = delay; _loops = loops;