summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/directoryrefresher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directoryrefresher.cpp b/src/directoryrefresher.cpp
index 26e43d53..063cd328 100644
--- a/src/directoryrefresher.cpp
+++ b/src/directoryrefresher.cpp
@@ -415,7 +415,7 @@ void DirectoryRefresher::addMultipleModsFilesToStructure(
for (std::size_t i=0; i<entries.size(); ++i) {
const auto& e = entries[i];
- const int prio = static_cast<int>(i + 1);
+ const int prio = e.priority + 1;
if constexpr (DirectoryStats::EnableInstrumentation) {
stats[i].mod = entries[i].modName.toStdString();