diff --git a/distrho/src/DistrhoPluginVST3.cpp b/distrho/src/DistrhoPluginVST3.cpp index c1f2ae4d..3e8d2f1e 100644 --- a/distrho/src/DistrhoPluginVST3.cpp +++ b/distrho/src/DistrhoPluginVST3.cpp @@ -4459,7 +4459,8 @@ struct dpf_component : v3_component_cpp { dpf_component* const component = *static_cast(self); PluginVst3* const vst3 = component->vst3; - DISTRHO_SAFE_ASSERT_RETURN(vst3 != nullptr, V3_NOT_INITIALIZED); + // It must be called *before* "initialize". + DISTRHO_SAFE_ASSERT_RETURN(vst3 == nullptr, V3_NOT_INITIALIZED); // TODO return V3_NOT_IMPLEMENTED;