diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2013-03-14 17:41:56 -0400 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-15 11:53:16 -0700 |
commit | 506b491eb1a8ca8fe60a963f8a36127d2860b551 (patch) | |
tree | 63842aefa6dd4c1ca4aac6e304471df8bd3ab333 /src | |
parent | 4ad029a76d573a8b00ea2bb11cadcfce3ac9334c (diff) |
Fix another off-by-one bug
Diffstat (limited to 'src')
-rw-r--r-- | src/library_openal.js | 2 |
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; } }, |