1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioProcessor: Fix version hint check

This commit is contained in:
reuk 2023-04-20 21:11:27 +01:00
parent f0b7c3aa13
commit a233dc2680
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -438,7 +438,7 @@ void AudioProcessor::validateParameter (AudioProcessorParameter* param)
*/
#if JucePlugin_Build_AU
static std::once_flag flag;
if (wrapperType == wrapperType_Undefined || param->getVersionHint() != 0)
if (wrapperType != wrapperType_Undefined && param->getVersionHint() == 0)
std::call_once (flag, [] { jassertfalse; });
#endif
}