diff options
author | stmSi <stm1998sithumyo@gmail.com> | 2022-12-24 12:39:48 +0630 |
---|---|---|
committer | stmSi <stm1998sithumyo@gmail.com> | 2022-12-24 12:39:48 +0630 |
commit | 20416169347ee2c365f01f6d7987dd78315488d5 (patch) | |
tree | 69d25148ded11096eaf1540c17efd25369ad7c9a /scene/3d | |
parent | f7cf9fb148140b86ee5795110373a0d55ff32860 (diff) |
Fix Editor hanging if audiostream's pitch_scale is NaN
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/audio_stream_player_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/audio_stream_player_3d.cpp b/scene/3d/audio_stream_player_3d.cpp index 75e840c24b..77f0dd54af 100644 --- a/scene/3d/audio_stream_player_3d.cpp +++ b/scene/3d/audio_stream_player_3d.cpp @@ -564,7 +564,7 @@ float AudioStreamPlayer3D::get_max_db() const { } void AudioStreamPlayer3D::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; } |