Fixed bug

This commit is contained in:
Perfare 2021-12-06 17:37:59 +08:00
parent 80653711cd
commit 3370f93037
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ namespace AssetStudio
{
var buff = ReadBytes(8);
Array.Reverse(buff);
return BitConverter.ToUInt64(buff, 0);
return BitConverter.ToDouble(buff, 0);
}
return base.ReadDouble();
}

View File

@ -203,7 +203,7 @@ namespace AssetStudio
{
if (platform == BuildTarget.XBOX360)
{
for (var i = 0; i < image_data.Length / 2; i++)
for (var i = 0; i < reader.Size / 2; i++)
{
var b = image_data[i * 2];
image_data[i * 2] = image_data[i * 2 + 1];