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 58b394ba..7665c23f 100644
--- a/src/library_openal.js
+++ b/src/library_openal.js
@@ -201,7 +201,7 @@ var LibraryOpenAL = {
}
for (var i = 0; i < count; ++i) {
AL.currentContext.buf.push({buf: null});
- {{{ makeSetValue('buffers', 'i', 'AL.currentContext.buf.length - 1', 'i32') }}};
+ {{{ makeSetValue('buffers', 'i', 'AL.currentContext.buf.length', 'i32') }}};
}
},