diff --git a/modules/juce_audio_processors/format_types/juce_VST3Common.h b/modules/juce_audio_processors/format_types/juce_VST3Common.h index 77544c7ae3..5d651d0614 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3Common.h +++ b/modules/juce_audio_processors/format_types/juce_VST3Common.h @@ -627,7 +627,7 @@ static bool validateLayouts (Iterator first, Iterator last, const std::vectornumChannels, [] (auto* ptr) { return ptr == nullptr; }); // Null channels are allowed if the bus is inactive - if ((mapIterator->isHostActive() && anyChannelIsNull) || ((int) mapIterator->size() != it->numChannels)) + if (mapIterator->isHostActive() && (anyChannelIsNull || (int) mapIterator->size() != it->numChannels)) return false; }