diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-17 14:06:55 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-17 14:06:55 +0100 |
commit | 9583c201716be4961d898a3daab20337f893b97c (patch) | |
tree | 2564cd0cdfd87451bb8873bc18a1f0f981b1a317 /servers/audio/effects/audio_effect_pitch_shift.cpp | |
parent | 1e3f42fccbf680f9e8d70af5ff114373d5e4ebab (diff) | |
parent | 20416169347ee2c365f01f6d7987dd78315488d5 (diff) |
Merge pull request #70515 from stmSi/fix-hanging-audio-pitch-scale
Fix hanging if audiostream's pitch_scale is NaN
Diffstat (limited to 'servers/audio/effects/audio_effect_pitch_shift.cpp')
-rw-r--r-- | servers/audio/effects/audio_effect_pitch_shift.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/audio/effects/audio_effect_pitch_shift.cpp b/servers/audio/effects/audio_effect_pitch_shift.cpp index 2693b2a56a..11c1d44472 100644 --- a/servers/audio/effects/audio_effect_pitch_shift.cpp +++ b/servers/audio/effects/audio_effect_pitch_shift.cpp @@ -309,7 +309,7 @@ Ref<AudioEffectInstance> AudioEffectPitchShift::instantiate() { } void AudioEffectPitchShift::set_pitch_scale(float p_pitch_scale) { - ERR_FAIL_COND(p_pitch_scale <= 0.0); + ERR_FAIL_COND(!(p_pitch_scale > 0.0)); pitch_scale = p_pitch_scale; } |