bugfix for UI animation playing crash if GUI JSON file is loaded again.

This commit is contained in:
Hong Liang 2014-09-26 11:29:48 +08:00
parent 3bcc3e014d
commit 9448345de3
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ void ActionManagerEx::initWithDictionary(const char* jsonName,const rapidjson::V
action->initWithDictionary(actionDic,root);
actionList.pushBack(action);
}
_actionDic.insert(std::pair<std::string, cocos2d::Vector<ActionObject*>>(fileName, actionList));
_actionDic[fileName] = actionList;
}
void ActionManagerEx::initWithBinary(const char* file,
@ -108,7 +108,7 @@ void ActionManagerEx::initWithDictionary(const char* jsonName,const rapidjson::V
actionList.pushBack(action);
}
}
_actionDic.insert(std::pair<std::string, cocos2d::Vector<ActionObject*>>(fileName, actionList));
_actionDic[fileName] = actionList;
}