mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix an exception on broken mods.
This commit is contained in:
parent
f1d9757077
commit
9cb6084d31
1 changed files with 5 additions and 0 deletions
|
|
@ -282,6 +282,11 @@ public class PenumbraSqPackStream : IDisposable
|
|||
|
||||
private void ReadTextureFile( PenumbraFileResource resource, MemoryStream ms )
|
||||
{
|
||||
if( resource.FileInfo!.BlockCount == 0 )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var blocks = Reader.ReadStructures< LodBlock >( ( int )resource.FileInfo!.BlockCount );
|
||||
|
||||
// if there is a mipmap header, the comp_offset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue