Skip to content

Commit 9d3127d

Browse files
cmdcolinjkbonfield
authored andcommitted
Fix arith decode by creating a new class instance on the fly
1 parent 027ebf6 commit 9d3127d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function r4x16_uncompress(inputBuffer, outputBuffer) {
5454
}
5555

5656
function arith_uncompress(inputBuffer, outputBuffer) {
57-
arith.decode(inputBuffer).copy(outputBuffer, 0, 0);
57+
new arith().decode(inputBuffer).copy(outputBuffer, 0, 0);
5858
}
5959

6060
function fqzcomp_uncompress(inputBuffer, outputBuffer) {

0 commit comments

Comments
 (0)