mirror of https://github.com/axmolengine/axmol.git
parent
3a0ee65a7e
commit
4edaa62ec7
|
@ -63,7 +63,7 @@ void ActionManagerEx::initWithDictionary(const char* jsonName,const rapidjson::V
|
|||
int actionCount = DICTOOL->getArrayCount_json(dic, "actionlist");
|
||||
for (int i=0; i<actionCount; i++) {
|
||||
ActionObject* action = new ActionObject();
|
||||
action->autorelease();
|
||||
action->autorelease();
|
||||
const rapidjson::Value &actionDic = DICTOOL->getDictionaryFromArray_json(dic, "actionlist", i);
|
||||
action->initWithDictionary(actionDic,root);
|
||||
actionList.pushBack(action);
|
||||
|
@ -123,4 +123,4 @@ void ActionManagerEx::releaseActions()
|
|||
_actionDic.clear();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue