Skip to content

Commit 89dd052

Browse files
committed
CHANGED: corrected acced get boxes with Boxes
1 parent 32c1229 commit 89dd052

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Extractor/Program.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,16 @@ static void Main(string[] args)
3131
}
3232

3333
int count = 0;
34-
for (int box = 0; box < sav.BoxCount; box++)
34+
var boxes = sav.Boxes;
35+
if (boxes is null)
3536
{
36-
var boxData = sav.GetBox(box);
37+
Console.WriteLine("Save file does not contain box data.");
38+
return;
39+
}
40+
41+
for (int box = 0; box < boxes.Length; box++)
42+
{
43+
var boxData = boxes[box];
3744
for (int i = 0; i < boxData.Length; i++)
3845
{
3946
var slot = boxData[i];

0 commit comments

Comments
 (0)