diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-24 09:50:43 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-24 09:50:43 -0500 |
| commit | 28d24b3caaf2d4fcee1441299bdf483939e7359f (patch) | |
| tree | f4ef72937bb81f5dffbd6640fd2d729f828bb71f /src/profile.cpp | |
| parent | 444f12c7c4103e7ed3c89706a8d8f682d5e87b67 (diff) | |
don't count overwrite, m_Overwrite is dead code
Diffstat (limited to 'src/profile.cpp')
| -rw-r--r-- | src/profile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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)) { |
