mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix issue when extracting some textures.
This commit is contained in:
parent
9cf69def7b
commit
d4f1097eba
1 changed files with 3 additions and 0 deletions
|
|
@ -305,6 +305,9 @@ public class PenumbraSqPackStream : IDisposable
|
|||
// i is for texture blocks, j is 'data blocks'...
|
||||
for( byte i = 0; i < blocks.Count; i++ )
|
||||
{
|
||||
if( blocks[ i ].CompressedSize == 0 )
|
||||
continue;
|
||||
|
||||
// start from comp_offset
|
||||
var runningBlockTotal = blocks[ i ].CompressedOffset + resource.FileInfo.Offset + resource.FileInfo.HeaderSize;
|
||||
ReadFileBlock( runningBlockTotal, ms, true );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue