mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 08:37:12 +00:00
iterate in reverse order
This commit is contained in:
parent
3bf641d3ce
commit
630ec36d1f
@ -100,10 +100,10 @@ namespace VFS
|
|||||||
{
|
{
|
||||||
std::string normalized = name;
|
std::string normalized = name;
|
||||||
normalize_path(normalized, mStrict);
|
normalize_path(normalized, mStrict);
|
||||||
for(const auto archive : mArchives)
|
for(auto it = mArchives.rbegin(); it != mArchives.rend(); ++it)
|
||||||
{
|
{
|
||||||
if(archive->contains(normalized, mStrict ? &strict_normalize_char : &nonstrict_normalize_char))
|
if((*it)->contains(normalized, mStrict ? &strict_normalize_char : &nonstrict_normalize_char))
|
||||||
return archive->getDescription();
|
return (*it)->getDescription();
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user