aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-10 06:32:39 -0700
committerChris Robinson <[email protected]>2014-05-10 06:32:39 -0700
commit9642bf637d32c5cff191e633ea4df61ac42a511b (patch)
tree5decbba9aee01dcd6c9e9d38b2fd3b92271a0536 /OpenAL32/alSource.c
parenta45570414847a359fab317e2ff4929c41a4af431 (diff)
Explicit init the source queue and current_buffer pointers
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c3
1 files changed, 3 insertions, 0 deletions
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++)