diff --git a/scene/resources/audio_stream_wav.cpp b/scene/resources/audio_stream_wav.cpp index 15e3f0f806..0043e076e4 100644 --- a/scene/resources/audio_stream_wav.cpp +++ b/scene/resources/audio_stream_wav.cpp @@ -587,7 +587,7 @@ void AudioStreamWAV::set_data(const Vector &p_data) { Vector AudioStreamWAV::get_data() const { Vector pv; - if (!data.is_empty()) { + if (data_bytes) { pv.resize(data_bytes); memcpy(pv.ptrw(), data.ptr() + DATA_PAD, data_bytes); }