mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 05:35:34 +08:00
Update HuffmanDecoder.cs
Since Huffman node is now a class it must be explicitely initiated.
This commit is contained in:
parent
4d5be92386
commit
3f4c263ec5
@ -89,6 +89,10 @@ namespace GameRes.Formats.DxLib
|
||||
originalSize = compressedSize = headerSize = 0;
|
||||
ushort[] weights = new ushort[256];
|
||||
nodes = new DXA8HuffmanNode[256+255]; //256 data nodes, then 255 hierarchy nodes.
|
||||
for (int i = 0; i < nodes.Length; i++)
|
||||
{
|
||||
nodes[i] = new DXA8HuffmanNode();
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] Unpack ()
|
||||
|
Loading…
Reference in New Issue
Block a user