mirror of https://github.com/axmolengine/axmol.git
fix UserDefault plain mode stack overflow
This commit is contained in:
parent
702887ba3c
commit
5ff9f4786e
|
@ -418,7 +418,7 @@ void UserDefault::lazyInit()
|
|||
pugi::xml_parse_result ret = doc.load_file(_filePath.c_str());
|
||||
if (ret) {
|
||||
for (auto& elem : doc.document_element())
|
||||
setValueForKey(elem.name(), elem.text().as_string());
|
||||
updateValueForKey(elem.name(), elem.text().as_string());
|
||||
}
|
||||
else {
|
||||
log("UserDefault::init load xml file: %s failed, %s", _filePath.c_str(), ret.description());
|
||||
|
|
Loading…
Reference in New Issue