diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-01 14:59:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-01 14:59:29 +0200 |
commit | 6b30f284a0544972f761be3e92ad8d1b176c9f9f (patch) | |
tree | 5edd19124ce8c9265a869a8171541d5ff7c60e17 /servers | |
parent | b0ce9401ffa731cc346ab6762fd0794709634428 (diff) | |
parent | 7d8d337b2c47df88498067ff9091386691242144 (diff) |
Merge pull request #29980 from Dentrax/directed-by-qarmin
Fix some editor crashes
Diffstat (limited to 'servers')
-rw-r--r-- | servers/audio/effects/audio_effect_record.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/audio/effects/audio_effect_record.cpp b/servers/audio/effects/audio_effect_record.cpp index abf9d5593c..acf27d2bbf 100644 --- a/servers/audio/effects/audio_effect_record.cpp +++ b/servers/audio/effects/audio_effect_record.cpp @@ -216,6 +216,9 @@ Ref<AudioStreamSample> AudioEffectRecord::get_recording() const { PoolVector<uint8_t> dst_data; + ERR_FAIL_COND_V(current_instance.is_null(), NULL); + ERR_FAIL_COND_V(current_instance->recording_data.size(), NULL); + if (dst_format == AudioStreamSample::FORMAT_8_BITS) { int data_size = current_instance->recording_data.size(); dst_data.resize(data_size); |