fix: 多层嵌套tars文件,当第二次移除同一元素时会崩溃 orderFileNames.erase(it->second);

This commit is contained in:
sky 2022-09-18 14:20:10 +08:00
parent 15a440aece
commit 7a500d45e3

View File

@ -107,7 +107,7 @@ string doTarsMerge(TC_Option& option, const vector<string>& vTars)
auto currIt = fileNames.find(currFileName);
if(currIt != fileNames.end()) {
orderFileNames.insert(currIt->second, fileName);
fileNames[fileName] = orderFileNames.insert(currIt->second, fileName);
}
}
}