Browse Source

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

Bart van Strien 13 years ago
parent
commit
f62bad6e12
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/audio/openal/Source.cpp

+ 1 - 1
src/modules/audio/openal/Source.cpp

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