From 275652e3d7775ef91257c55ea5691b53833f2b3a Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 29 Aug 2015 23:27:00 +0400 Subject: [PATCH] fixed BGI huffman decompression. --- ArcFormats/Ethornell/ArcBGI.cs | 2 +- ArcFormats/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ArcFormats/Ethornell/ArcBGI.cs b/ArcFormats/Ethornell/ArcBGI.cs index bcdbe9cb..99c27a74 100644 --- a/ArcFormats/Ethornell/ArcBGI.cs +++ b/ArcFormats/Ethornell/ArcBGI.cs @@ -232,7 +232,7 @@ namespace GameRes.Formats.BGI int child_index = switch_flag; int depth_existed_nodes = 0; - while (hcode[n].Depth == depth) + while (n < hcode.Length && hcode[n].Depth == depth) { var node = new HuffmanNode { IsParent = false, Code = hcode[n++].Code }; hnodes[nodes_index[huffman_nodes_index, depth_existed_nodes]] = node; diff --git a/ArcFormats/Properties/AssemblyInfo.cs b/ArcFormats/Properties/AssemblyInfo.cs index fb38d72c..a1fbacab 100644 --- a/ArcFormats/Properties/AssemblyInfo.cs +++ b/ArcFormats/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion ("1.1.9.414")] -[assembly: AssemblyFileVersion ("1.1.9.414")] +[assembly: AssemblyVersion ("1.1.9.416")] +[assembly: AssemblyFileVersion ("1.1.9.416")]