Fix [#23578] Blender crashes when Audio Scrubbing is on
Reported by Guy Smith. MSVC-compiled code would fall over iterator decrease on empty list. Shortest snippet to redo: http://www.pasteall.org/15408/cpp See also http://www.pasteall.org/15409/cpp for list.end() behaviour on MSVC. Thanks to Jörg Müller for assistance.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user