Commits

Bart van Strien committed 56a4af2

Make sure processed is initialized, for when alGetSourcei errors (bug #442)

  • Participants
  • Parent commits 31fa48f

Comments (0)

Files changed (1)

src/modules/audio/openal/Source.cpp

 		else if (type == TYPE_STREAM && (isLooping() || !isFinished()))
 		{
 			// Number of processed buffers.
-			ALint processed;
+			ALint processed = 0;
 
 			alGetSourcei(source, AL_BUFFERS_PROCESSED, &processed);