diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp index 018d0ed932..150e3b4b9b 100644 --- a/indexer/ftypes_matcher.hpp +++ b/indexer/ftypes_matcher.hpp @@ -204,10 +204,10 @@ public: { bool need = true; feature.ForEachType([&](uint32_t type) { - if (need && !IsMatched(type)) + if (need && IsMatched(type)) need = false; }); - return need; + return !need; } };