1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00

erase -> pop_back

This commit is contained in:
Michael
2023-08-09 20:27:24 +02:00
committed by GitHub
parent 6013549ef8
commit 92fd317a84

View File

@ -503,8 +503,8 @@ void SelectionTab::select(int position)
{ {
std::vector<std::string> filetree; std::vector<std::string> filetree;
boost::split(filetree, curFolder, boost::is_any_of("/")); boost::split(filetree, curFolder, boost::is_any_of("/"));
filetree.erase(filetree.end()); filetree.pop_back();
filetree.erase(filetree.end()); filetree.pop_back();
curFolder = filetree.size() > 0 ? boost::algorithm::join(filetree, "/") + "/" : ""; curFolder = filetree.size() > 0 ? boost::algorithm::join(filetree, "/") + "/" : "";
} }
else else