diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library_openal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_openal.js b/src/library_openal.js index 5316faa5..60714091 100644 --- a/src/library_openal.js +++ b/src/library_openal.js @@ -20,7 +20,7 @@ var LibraryOpenAL = { if (context == 0) { AL.currentContext = null; } else { - AL.currentContext = AL.contexts[context]; + AL.currentContext = AL.contexts[context - 1]; } }, @@ -62,7 +62,7 @@ var LibraryOpenAL = { if (ctx) { AL.contexts.push({ctx: ctx, err: 0, src: [], buf: []}); - return AL.contexts.length - 1; + return AL.contexts.length; } else { return 0; } |