From 1747dcf5632a7887906b9b6d412e95e3af9c8249 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Thu, 21 Jan 2021 19:42:41 +0100 Subject: INT_MAX -> std::numeric_limits, plus minor clean. --- src/profile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/profile.cpp') 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 > 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::max())); else result.push_back(std::make_tuple(modInfo->internalName(), modInfo->absolutePath(), m_ModStatus[iter->second].m_Priority)); } -- cgit v1.3.1