mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +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…
x
Reference in New Issue
Block a user