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 /modules/minimp3 | |
parent | 94dbf69f5d6b7d2fd9561692df2e71557607fddc (diff) | |
download | redot-engine-684752e75bdeb58727c2d9b0ff0265d7fcd47de0.tar.gz |
Replace error checks against `size` with `is_empty`
Diffstat (limited to 'modules/minimp3')
-rw-r--r-- | modules/minimp3/resource_importer_mp3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/minimp3/resource_importer_mp3.cpp b/modules/minimp3/resource_importer_mp3.cpp index 33c926689a..e4b54ef050 100644 --- a/modules/minimp3/resource_importer_mp3.cpp +++ b/modules/minimp3/resource_importer_mp3.cpp @@ -110,7 +110,7 @@ Ref<AudioStreamMP3> ResourceImporterMP3::import_mp3(const String &p_path) { mp3_stream.instantiate(); mp3_stream->set_data(data); - ERR_FAIL_COND_V(!mp3_stream->get_data().size(), Ref<AudioStreamMP3>()); + ERR_FAIL_COND_V(mp3_stream->get_data().is_empty(), Ref<AudioStreamMP3>()); return mp3_stream; } |