From 8ad7b5a71a0bed1eb223ee398f148d56ccc285fb Mon Sep 17 00:00:00 2001 From: Michael Theall Date: Fri, 7 Jan 2022 17:47:01 -0600 Subject: [PATCH] Fix huffman decode --- libctru/source/util/decompress/decompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libctru/source/util/decompress/decompress.c b/libctru/source/util/decompress/decompress.c index b8afaf18c..67b006741 100644 --- a/libctru/source/util/decompress/decompress.c +++ b/libctru/source/util/decompress/decompress.c @@ -585,7 +585,7 @@ decompress_huff(const size_t bits, buffer_t *buffer, const decompressIOVec *iov, } // read the current node's offset value - offset = tree[node] & 0x1F; + offset = tree[node] & 0x3F; child = (node & ~1) + offset*2 + 2;