diff --git a/PKX/f1-Main.cs b/PKX/f1-Main.cs index b03419636..6ffdf1dd0 100644 --- a/PKX/f1-Main.cs +++ b/PKX/f1-Main.cs @@ -2790,9 +2790,10 @@ private void switchDaycare(object sender, EventArgs e) private void dumpBoxesToDB(string path, bool individualBoxFolders) { + PK6[] boxdata = SAV.BoxData; for (int i = 0; i < 31 * 30; i++) { - PK6 pk = SAV.getPK6Stored(SAV.Box + i * PK6.SIZE_STORED); + PK6 pk = boxdata[i]; if (pk.Species == 0 || pk.Sanity != 0) continue; string fileName = Util.CleanFileName(pk.FileName);