Update HuffmanDecoder.cs

This commit is contained in:
Sławomir Śpiewak 2024-08-05 16:13:32 +02:00
parent 2ad5095cec
commit 4773ff148f

View File

@ -343,9 +343,10 @@ namespace GameRes.Formats.DxLib
if (0 == m_bit_count)
{
m_bits = m_input[m_src];
m_src += 1;
m_src++;
m_bit_count = 8;
}
//bits are read backwards.
bits |= ((ulong)((m_bits >> (7 - m_readBits)) & 1)) <<(count-1-i);
--m_bit_count;
m_readBits++;