From cc22ba985443ff0dc3c5c58a8e84a648a5765358 Mon Sep 17 00:00:00 2001 From: Yuyao Feng Date: Sun, 12 Oct 2014 08:58:28 +0800 Subject: [PATCH] Fix bug that ActionManagerEx::initWithBinary can only load one UI animation --- cocos/editor-support/cocostudio/CCActionManagerEx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/editor-support/cocostudio/CCActionManagerEx.cpp b/cocos/editor-support/cocostudio/CCActionManagerEx.cpp index d805005bea..5369ddbc0e 100644 --- a/cocos/editor-support/cocostudio/CCActionManagerEx.cpp +++ b/cocos/editor-support/cocostudio/CCActionManagerEx.cpp @@ -103,7 +103,7 @@ void ActionManagerEx::initWithDictionary(const char* jsonName,const rapidjson::V ActionObject* action = new (std::nothrow) ActionObject(); action->autorelease(); - action->initWithBinary(cocoLoader, actionNode->GetChildArray(cocoLoader), root); + action->initWithBinary(cocoLoader, &actionNode->GetChildArray(cocoLoader)[i], root); actionList.pushBack(action); }