Skip to content

Commit

Permalink
fix: bz2 wasm corrupted after playing soundscape midi
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraviolet-jordan committed Aug 21, 2024
1 parent 5e455bb commit b6980a6
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 54 deletions.
2 changes: 1 addition & 1 deletion assembly/bz2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function decompress(): void {

for (let i: i32 = 0; i < nSelectors; i++) {
let v: u8 = unchecked(state.selectorMtf[i]);
const tmp: u8 = unchecked(pos[v]);
const tmp: u8 = pos[v];
while (v > 0) {
unchecked((pos[v] = pos[v - 1]));
v--;
Expand Down
Loading

0 comments on commit b6980a6

Please sign in to comment.