diff --git a/src/modules/audio/openal/Source.cpp b/src/modules/audio/openal/Source.cpp index d0b8c6065..b842e1c57 100644 --- a/src/modules/audio/openal/Source.cpp +++ b/src/modules/audio/openal/Source.cpp @@ -178,7 +178,7 @@ Source::Source(Pool *pool, love::sound::Decoder *decoder) , bitDepth(decoder->getBitDepth()) , decoder(decoder) , toLoop(0) - , unusedBufferTop(-1) + , unusedBufferTop(MAX_BUFFERS - 1) { if (getFormat(decoder->getChannels(), decoder->getBitDepth()) == 0) throw InvalidFormatException(decoder->getChannels(), decoder->getBitDepth());