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 8f98e7cc58..8c1b6ae089 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -1537,7 +1537,7 @@ public: { if (pluginInstance->getBypassParameter() == nullptr) { - if (auto* bypassParam = comPluginInstance->getBypassParameter()) + if (comPluginInstance->getBypassParameter() != nullptr) { auto privateData = ValueTree::readFromData (data, static_cast (sizeInBytes)); setBypassed (static_cast (privateData.getProperty ("Bypass", var (false))));