mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-22 22:16:38 +08:00
fix: 多层嵌套tars文件,当第二次移除同一元素时会崩溃 orderFileNames.erase(it->second);
This commit is contained in:
parent
15a440aece
commit
7a500d45e3
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user