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;