summaryrefslogtreecommitdiff
path: root/src/profile.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-21 19:42:41 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-21 19:42:41 +0100
commit1747dcf5632a7887906b9b6d412e95e3af9c8249 (patch)
tree6e662c5b2eb64d72b8c3e9f95f99333768f127f4 /src/profile.cpp
parentf8943ee477e1cb5821e6208ee2d177c26c4b4ad3 (diff)
INT_MAX -> std::numeric_limits, plus minor clean.
Diffstat (limited to 'src/profile.cpp')
-rw-r--r--src/profile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profile.cpp b/src/profile.cpp
index caea776c..acda465b 100644
--- a/src/profile.cpp
+++ b/src/profile.cpp
@@ -591,7 +591,7 @@ std::vector<std::tuple<QString, QString, int> > Profile::getActiveMods()
if ((iter->second != UINT_MAX) && m_ModStatus[iter->second].m_Enabled) {
ModInfo::Ptr modInfo = ModInfo::getByIndex(iter->second);
if (modInfo->hasFlag(ModInfo::FLAG_OVERWRITE))
- result.push_back(std::make_tuple(modInfo->internalName(), modInfo->absolutePath(), INT_MAX));
+ result.push_back(std::make_tuple(modInfo->internalName(), modInfo->absolutePath(), std::numeric_limits<int>::max()));
else
result.push_back(std::make_tuple(modInfo->internalName(), modInfo->absolutePath(), m_ModStatus[iter->second].m_Priority));
}