diff options
Diffstat (limited to 'intern/audaspace')
-rw-r--r-- | intern/audaspace/OpenAL/AUD_OpenALDevice.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp b/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp index aa7cfcfd880..a87a4ad5eef 100644 --- a/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp +++ b/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp @@ -243,7 +243,10 @@ void AUD_OpenALDevice::updateStreams() stop(sound); // decrement again, so that we get the next sound in the // next loop run - --it; + if(m_playingSounds->empty()) + break; + else + --it; } // continue playing else |