Use 'contains' method

This commit is contained in:
mitaclaw
2024-08-15 14:20:16 -07:00
parent 18ac8bf405
commit 9fa4eb9aab
9 changed files with 12 additions and 14 deletions

View File

@ -53,7 +53,7 @@ Java_org_dolphinemu_dolphinemu_features_cheats_model_GraphicsModGroup_getMods(JN
// If no group matches the mod's features, or if the mod has no features, skip it
if (std::none_of(mod.m_features.begin(), mod.m_features.end(),
[&groups](const GraphicsModFeatureConfig& feature) {
return groups.count(feature.m_group) == 1;
return groups.contains(feature.m_group);
}))
{
continue;