From 64b53c7705df7e99bab9ea1cb44934e5d5904b69 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 16 Nov 2016 18:27:09 -0800 Subject: [PATCH] Fix QR Type offset --- PKHeX/Saves/Substructures/QR7.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX/Saves/Substructures/QR7.cs b/PKHeX/Saves/Substructures/QR7.cs index 105cdcf01..438e690d2 100644 --- a/PKHeX/Saves/Substructures/QR7.cs +++ b/PKHeX/Saves/Substructures/QR7.cs @@ -77,7 +77,7 @@ private static byte[] GenerateQRData(PK7 pk7, int box = 0, int slot = 0, int num byte[] data = new byte[0x1A2]; BitConverter.GetBytes(0x454B4F50).CopyTo(data, 0); // POKE magic - data[0x5] = 0xFF; // QR Type + data[0x4] = 0xFF; // QR Type BitConverter.GetBytes(box).CopyTo(data, 0x8); BitConverter.GetBytes(slot).CopyTo(data, 0xC); BitConverter.GetBytes(num_copies).CopyTo(data, 0x10); // No need to check max num_copies, payload parser handles it on-console.