From 50084eaaee0b952ee5c465fcd6459343c2d9e4fc Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 14 Sep 2021 18:38:46 -0700 Subject: [PATCH] Fix sav3 [uninit, oneSave] primary secondary detection Closes #3257 --- PKHeX.Core/Saves/SAV3.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Saves/SAV3.cs b/PKHeX.Core/Saves/SAV3.cs index 4f8a5d2b9..86b796640 100644 --- a/PKHeX.Core/Saves/SAV3.cs +++ b/PKHeX.Core/Saves/SAV3.cs @@ -97,7 +97,7 @@ public static bool IsAllMainSectorsPresent(byte[] data, int slot, out int sector int end = start + SIZE_MAIN; int bitTrack = 0; sector0 = 0; - for (int ofs = 0; ofs < end; ofs += SIZE_SECTOR) + for (int ofs = start; ofs < end; ofs += SIZE_SECTOR) { var id = BitConverter.ToInt16(data, ofs + 0xFF4); bitTrack |= (1 << id);