diff --git a/src/SFML/Audio/SoundStream.cpp b/src/SFML/Audio/SoundStream.cpp index 0a2503ef..7db02a4c 100644 --- a/src/SFML/Audio/SoundStream.cpp +++ b/src/SFML/Audio/SoundStream.cpp @@ -221,7 +221,7 @@ void SoundStream::Stream() } // Get the number of buffers that have been processed (ie. ready for reuse) - ALint nbProcessed; + ALint nbProcessed = 0; ALCheck(alGetSourcei(mySource, AL_BUFFERS_PROCESSED, &nbProcessed)); while (nbProcessed--)