diff options
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/al/source.cpp b/al/source.cpp index d39c1edc..34d332c6 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -2179,7 +2179,10 @@ try { * buffer's ID when playing. */ if(Source->SourceType == AL_STATIC || Source->state == AL_INITIAL) - BufferList = &Source->mQueue.front(); + { + if(!Source->mQueue.empty()) + BufferList = &Source->mQueue.front(); + } else if(Voice *voice{GetSourceVoice(Source, Context)}) { VoiceBufferItem *Current{voice->mCurrentBuffer.load(std::memory_order_relaxed)}; |