1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-23 06:41:08 +00:00

Followup to 21efb74b58479b93f7f7cc7ab7ff34728c2d7912

This commit is contained in:
jvoisin 2022-05-27 19:09:34 +02:00
parent a5201ac443
commit bd5ccaac3c

View File

@ -44,7 +44,8 @@ namespace VFS
std::set<std::filesystem::path> seen;
for (Files::PathContainer::const_iterator iter = dataDirs.begin(); iter != dataDirs.end(); ++iter)
{
if (seen.insert((*iter).c_str()).second)
// TODO(jvoisin) Get rid of `->native()` when we move PathContainer from boost::filesystem to std::filesystem.
if (seen.insert(iter->native()).second)
{
Log(Debug::Info) << "Adding data directory " << iter->string();
// Last data dir has the highest priority