From 20416169347ee2c365f01f6d7987dd78315488d5 Mon Sep 17 00:00:00 2001 From: stmSi Date: Sat, 24 Dec 2022 12:39:48 +0630 Subject: Fix Editor hanging if audiostream's pitch_scale is NaN --- scene/3d/audio_stream_player_3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/3d') 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; } -- cgit v1.2.3