From a474c7202623da429cbf535868de48bf87bc0b91 Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 30 Mar 2015 17:11:15 +0200 Subject: [PATCH] Archive priority fix --- components/vfs/registerarchives.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/vfs/registerarchives.cpp b/components/vfs/registerarchives.cpp index cd077356f7..69d4498bb5 100644 --- a/components/vfs/registerarchives.cpp +++ b/components/vfs/registerarchives.cpp @@ -11,13 +11,6 @@ namespace VFS { const Files::PathContainer& dataDirs = collections.getPaths(); - if (useLooseFiles) - for (Files::PathContainer::const_iterator iter = dataDirs.begin(); iter != dataDirs.end(); ++iter) - { - // Last data dir has the highest priority - vfs->addArchive(new FileSystemArchive(iter->string())); - } - for (std::vector::const_iterator archive = archives.begin(); archive != archives.end(); ++archive) { if (collections.doesExist(*archive)) @@ -36,6 +29,13 @@ namespace VFS } } + if (useLooseFiles) + for (Files::PathContainer::const_iterator iter = dataDirs.begin(); iter != dataDirs.end(); ++iter) + { + // Last data dir has the highest priority + vfs->addArchive(new FileSystemArchive(iter->string())); + } + vfs->buildIndex(); }