From 9642bf637d32c5cff191e633ea4df61ac42a511b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 10 May 2014 06:32:39 -0700 Subject: Explicit init the source queue and current_buffer pointers --- OpenAL32/alSource.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenAL32/alSource.c') diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 8a578a5e..37c7f472 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -2288,6 +2288,9 @@ static ALvoid InitSourceParams(ALsource *Source) Source->SourceType = AL_UNDETERMINED; Source->Offset = -1.0; + Source->queue = NULL; + Source->current_buffer = NULL; + Source->DirectGain = 1.0f; Source->DirectGainHF = 1.0f; for(i = 0;i < MAX_SENDS;i++) -- cgit v1.2.3