diff --git a/Source/Core/UICommon/ResourcePack/ResourcePack.cpp b/Source/Core/UICommon/ResourcePack/ResourcePack.cpp index 225714c1f4..f80b5e0caf 100644 --- a/Source/Core/UICommon/ResourcePack/ResourcePack.cpp +++ b/Source/Core/UICommon/ResourcePack/ResourcePack.cpp @@ -320,7 +320,7 @@ bool ResourcePack::Uninstall(const std::string& path) return true; } -bool ResourcePack::operator==(const ResourcePack& pack) +bool ResourcePack::operator==(const ResourcePack& pack) const { return pack.GetPath() == m_path; } diff --git a/Source/Core/UICommon/ResourcePack/ResourcePack.h b/Source/Core/UICommon/ResourcePack/ResourcePack.h index 516114118f..9d5e29af60 100644 --- a/Source/Core/UICommon/ResourcePack/ResourcePack.h +++ b/Source/Core/UICommon/ResourcePack/ResourcePack.h @@ -30,7 +30,7 @@ public: bool Install(const std::string& path); bool Uninstall(const std::string& path); - bool operator==(const ResourcePack& pack); + bool operator==(const ResourcePack& pack) const; private: bool m_valid = true;