diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-01-19 13:21:39 +0100 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-02-09 12:50:15 +0100 |
commit | 684752e75bdeb58727c2d9b0ff0265d7fcd47de0 (patch) | |
tree | 4fc57e9d0738021b8b31699a6339275347e38ec0 /servers/audio | |
parent | 94dbf69f5d6b7d2fd9561692df2e71557607fddc (diff) | |
download | redot-engine-684752e75bdeb58727c2d9b0ff0265d7fcd47de0.tar.gz |
Replace error checks against `size` with `is_empty`
Diffstat (limited to 'servers/audio')
-rw-r--r-- | servers/audio/effects/audio_effect_record.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/audio/effects/audio_effect_record.cpp b/servers/audio/effects/audio_effect_record.cpp index 6e49bb122b..e1e9270074 100644 --- a/servers/audio/effects/audio_effect_record.cpp +++ b/servers/audio/effects/audio_effect_record.cpp @@ -204,7 +204,7 @@ Ref<AudioStreamWAV> AudioEffectRecord::get_recording() const { Vector<uint8_t> dst_data; ERR_FAIL_COND_V(current_instance.is_null(), nullptr); - ERR_FAIL_COND_V(current_instance->recording_data.size() == 0, nullptr); + ERR_FAIL_COND_V(current_instance->recording_data.is_empty(), nullptr); if (dst_format == AudioStreamWAV::FORMAT_8_BITS) { int data_size = current_instance->recording_data.size(); |