From cc3b08fea5df76674ff7040be5168d85063046e6 Mon Sep 17 00:00:00 2001 From: Perfare Date: Sat, 15 Oct 2016 20:02:15 +0800 Subject: [PATCH] fixed bug --- Unity Studio/BundleFile.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Unity Studio/BundleFile.cs b/Unity Studio/BundleFile.cs index afe558a..6440a34 100644 --- a/Unity Studio/BundleFile.cs +++ b/Unity Studio/BundleFile.cs @@ -127,9 +127,10 @@ namespace Unity_Studio byte[] blocksInfoBytes; if ((flag & 0x80) != 0)//at end of file { + var position = b_Stream.Position; b_Stream.Position = b_Stream.BaseStream.Length - compressedSize; blocksInfoBytes = b_Stream.ReadBytes(compressedSize); - b_Stream.Position = 0x2E; + b_Stream.Position = position; } else {