1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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