Skip to content

Commit c898b35

Browse files
committed
Fix kArchiveBlocksInfoAtTheEnd
1 parent eb49686 commit c898b35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

UnityAsset.NET/BundleFile/BlocksAndDirectoryInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public BlocksAndDirectoryInfo(AssetReader reader, Header header, ref bool blocks
2121
{
2222
blocksInfoAtTheEnd = true;
2323
long position = reader.Position;
24-
reader.Position = reader.BaseStream.Length - header.compressedBlocksInfoSize;
24+
reader.Position = header.size - header.compressedBlocksInfoSize;
2525
BlocksInfoBytes = reader.ReadBytes((int)header.compressedBlocksInfoSize).ToList();
2626
reader.Position = position;
2727
}

0 commit comments

Comments
 (0)