diff --git a/py/LunaTranslator/cishu/mdict.py b/py/LunaTranslator/cishu/mdict.py index b48b70692a4..5979a8f71f7 100644 --- a/py/LunaTranslator/cishu/mdict.py +++ b/py/LunaTranslator/cishu/mdict.py @@ -1265,7 +1265,7 @@ def _decode_record_block(self): # decompress header = b"\xf0" + pack(">I", decompressed_size) record_block = lzo.decompress( - record_block_compressed[start + 8 : end], + record_block_compressed[8:], initSize=decompressed_size, blockSize=1308672, ) @@ -1353,7 +1353,7 @@ def get_index(self, check_block=True): header = b"\xf0" + pack(">I", decompressed_size) if check_block: record_block = lzo.decompress( - record_block_compressed[start + 8 : end], + record_block_compressed[8:], initSize=decompressed_size, blockSize=1308672, )