mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-06-03 00:58:13 -04:00
fixed bug
This commit is contained in:
parent
b319e92b3e
commit
fe6b7760b0
@ -60,8 +60,8 @@ namespace Unity_Studio
|
|||||||
{
|
{
|
||||||
int m_Stream = a_Stream.ReadInt32();
|
int m_Stream = a_Stream.ReadInt32();
|
||||||
m_Size = a_Stream.ReadInt32();
|
m_Size = a_Stream.ReadInt32();
|
||||||
|
var asize = m_Size % 4 != 0 ? m_Size + 4 - m_Size % 4 : m_Size;
|
||||||
if (m_Stream > 1)
|
if (m_Stream > 1 && preloadData.Size + preloadData.Offset - a_Stream.Position > asize)
|
||||||
{
|
{
|
||||||
m_Offset = a_Stream.ReadInt32();
|
m_Offset = a_Stream.ReadInt32();
|
||||||
m_Source = sourceFile.filePath + ".resS";
|
m_Source = sourceFile.filePath + ".resS";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user