From 28d24b3caaf2d4fcee1441299bdf483939e7359f Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Thu, 24 Dec 2020 09:50:43 -0500 Subject: don't count overwrite, m_Overwrite is dead code --- src/profile.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/profile.cpp') diff --git a/src/profile.cpp b/src/profile.cpp index 92f2abce..3cc1a2a3 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -1123,10 +1123,6 @@ void Profile::debugDump() const for (const auto& status : m_ModStatus) { - if (status.m_Overwrite) { - continue; - } - auto index = m_ModIndexByPriority.find(status.m_Priority); if (index == m_ModIndexByPriority.end()) { log::error("mod with priority {} not in priority map", status.m_Priority); @@ -1139,6 +1135,10 @@ void Profile::debugDump() const continue; } + if (m->hasFlag(ModInfo::FLAG_OVERWRITE)) { + continue; + } + add(total, status); if (m->hasFlag(ModInfo::FLAG_BACKUP)) { -- cgit v1.3.1