From 7019b6e1ab28f6a839733537a74d1966ab42de18 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Wed, 2 Apr 2014 12:03:42 +0800 Subject: [PATCH] Fixed #4637: Add predefined value indication in cpp --- cocos/2d/CCAnimation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;