Fix sav3 [uninit, oneSave] primary secondary detection

Closes #3257
This commit is contained in:
Kurt 2021-09-14 18:38:46 -07:00
parent a779000097
commit 50084eaaee

View File

@ -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);