mirror of https://github.com/axmolengine/axmol.git
Merge pull request #8167 from hongliang-goudou/v3
bugfix for UI animation playing crash if GUI JSON file is loaded again.
This commit is contained in:
commit
8ed336c681
|
@ -73,7 +73,7 @@ void ActionManagerEx::initWithDictionary(const char* jsonName,const rapidjson::V
|
||||||
action->initWithDictionary(actionDic,root);
|
action->initWithDictionary(actionDic,root);
|
||||||
actionList.pushBack(action);
|
actionList.pushBack(action);
|
||||||
}
|
}
|
||||||
_actionDic.insert(std::pair<std::string, cocos2d::Vector<ActionObject*>>(fileName, actionList));
|
_actionDic[fileName] = actionList;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ActionManagerEx::initWithBinary(const char* file,
|
void ActionManagerEx::initWithBinary(const char* file,
|
||||||
|
@ -108,7 +108,7 @@ void ActionManagerEx::initWithDictionary(const char* jsonName,const rapidjson::V
|
||||||
actionList.pushBack(action);
|
actionList.pushBack(action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_actionDic.insert(std::pair<std::string, cocos2d::Vector<ActionObject*>>(fileName, actionList));
|
_actionDic[fileName] = actionList;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue