Skip to content

Commit

Permalink
Fix arith decode by creating a new class instance on the fly
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin authored and jkbonfield committed Nov 12, 2024
1 parent 027ebf6 commit 9d3127d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function r4x16_uncompress(inputBuffer, outputBuffer) {
}

function arith_uncompress(inputBuffer, outputBuffer) {
arith.decode(inputBuffer).copy(outputBuffer, 0, 0);
new arith().decode(inputBuffer).copy(outputBuffer, 0, 0);
}

function fqzcomp_uncompress(inputBuffer, outputBuffer) {
Expand Down

0 comments on commit 9d3127d

Please sign in to comment.