aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_openal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_openal.js b/src/library_openal.js
index 11dc1ea1..ba55e6bd 100644
--- a/src/library_openal.js
+++ b/src/library_openal.js
@@ -196,7 +196,7 @@ var LibraryOpenAL = {
console.error("alSourceQueueBuffers called with an invalid buffer");
return;
}
- AL.currentCOntext.src[source].src.buffer = AL.currentContext.buf[buffer - 1].buf;
+ AL.currentCOntext.src[source - 1].src.buffer = AL.currentContext.buf[buffer - 1].buf;
}
},