From d8ba9f182480449cb20b253873813c26b0fff07f Mon Sep 17 00:00:00 2001 From: Saracen Date: Mon, 12 Aug 2019 08:10:56 +0100 Subject: [PATCH] Fix recording bus regression. --- servers/audio/effects/audio_effect_record.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/audio/effects/audio_effect_record.cpp b/servers/audio/effects/audio_effect_record.cpp index acf27d2bbf2..1390ab55c49 100644 --- a/servers/audio/effects/audio_effect_record.cpp +++ b/servers/audio/effects/audio_effect_record.cpp @@ -217,7 +217,7 @@ Ref AudioEffectRecord::get_recording() const { PoolVector dst_data; ERR_FAIL_COND_V(current_instance.is_null(), NULL); - ERR_FAIL_COND_V(current_instance->recording_data.size(), NULL); + ERR_FAIL_COND_V(current_instance->recording_data.size() == 0, NULL); if (dst_format == AudioStreamSample::FORMAT_8_BITS) { int data_size = current_instance->recording_data.size();