diff --git a/src/sfizz/Effects.cpp b/src/sfizz/Effects.cpp index fb77acf2..9ae699fb 100644 --- a/src/sfizz/Effects.cpp +++ b/src/sfizz/Effects.cpp @@ -51,7 +51,7 @@ std::unique_ptr EffectFactory::makeEffect(absl::Span membe return std::make_unique(); } - auto fx = std::unique_ptr(it->make(members)); + auto fx = it->make(members); if (!fx) { DBG("Could not instantiate effect of type: " << type); return std::make_unique();