diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-09-25 19:05:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-25 19:05:47 +0200 |
commit | 0a6446ff361f1674649e1625eb5868478d998091 (patch) | |
tree | 2ae4e4ce31c987d8c997a773876994394ca8723f | |
parent | 6c3f80c5260319002b1f5ba7bc78f5ab21064f18 (diff) | |
parent | ffca222d171cc88f52c35436919f892f8e78df6b (diff) |
Merge pull request #11577 from ISylvox/AudioEffectChorus-VoiceCount
Fix Voice_Count Issues in AudioEffectChorus
[ci skip]
-rw-r--r-- | servers/audio/effects/audio_effect_chorus.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/servers/audio/effects/audio_effect_chorus.cpp b/servers/audio/effects/audio_effect_chorus.cpp index 76dd585ffa..32631beb2c 100644 --- a/servers/audio/effects/audio_effect_chorus.cpp +++ b/servers/audio/effects/audio_effect_chorus.cpp @@ -182,9 +182,8 @@ Ref<AudioEffectInstance> AudioEffectChorus::instance() { void AudioEffectChorus::set_voice_count(int p_voices) { - ERR_FAIL_COND(p_voices < 1 || p_voices >= MAX_VOICES); + ERR_FAIL_COND(p_voices < 1 || p_voices > MAX_VOICES); voice_count = p_voices; - _change_notify(); } int AudioEffectChorus::get_voice_count() const { |