Skip to content

Commit 2247123

Browse files
committed
Fixed bug with wrong array content when using text dump
1 parent 2e3026b commit 2247123

3 files changed

Lines changed: 201 additions & 201 deletions

File tree

TextDumper/TextDumperTool.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Array ReadBasicTypeArray(TypeTreeNode node, UnityFileReader reader, long offset,
241241
var tmpArray = new byte[arraySize];
242242
var boolArray = new bool[arraySize];
243243

244-
reader.ReadArray(offset + 4, arraySize * node.Size, tmpArray);
244+
reader.ReadArray(offset, arraySize * node.Size, tmpArray);
245245

246246
for (int i = 0; i < arraySize; ++i)
247247
{
@@ -254,7 +254,7 @@ Array ReadBasicTypeArray(TypeTreeNode node, UnityFileReader reader, long offset,
254254
{
255255
var array = Array.CreateInstance(node.CSharpType, arraySize);
256256

257-
reader.ReadArray(offset + 4, arraySize * node.Size, array);
257+
reader.ReadArray(offset, arraySize * node.Size, array);
258258

259259
return array;
260260
}

0 commit comments

Comments
 (0)