diff --git a/PKHeX/Saves/SAV4.cs b/PKHeX/Saves/SAV4.cs index c11a99aab..e92d45305 100644 --- a/PKHeX/Saves/SAV4.cs +++ b/PKHeX/Saves/SAV4.cs @@ -708,8 +708,7 @@ private bool[] MysteryGiftDPSlotActiveFlags return; int ofs = WondercardFlags + 0x100; // skip over flags - bool[] active = new bool[GiftCountMax]; // 8 PGT, 3 PCD - for (int i = 0; i < active.Length; i++) + for (int i = 0; i < value.Length; i++) { byte[] magic = BitConverter.GetBytes(value[i] ? MysteryGiftDPSlotActive : 0); // 4 bytes setData(magic, ofs + 4*i);