diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index b0d250f999..614d1f02bc 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -1351,11 +1351,11 @@ public: { if (pluginInstance->getBypassParameter() == nullptr) { - auto privateData = ValueTree::readFromData (data, static_cast (sizeInBytes)); - auto isBypassed = static_cast (privateData.getProperty ("Bypass", var (false))); - if (auto* bypassParam = comPluginInstance->getBypassParameter()) - setBypassed (isBypassed ? 1.0f : 0.0f); + { + auto privateData = ValueTree::readFromData (data, static_cast (sizeInBytes)); + setBypassed (static_cast (privateData.getProperty ("Bypass", var (false)))); + } } }