diff --git a/Misc/PKX.cs b/Misc/PKX.cs index 394f125e0..41c00d952 100644 --- a/Misc/PKX.cs +++ b/Misc/PKX.cs @@ -416,7 +416,7 @@ namespace PKHeX }; internal static byte[] shuffleArray(byte[] data, uint sv) { - byte[] sdata = new byte[260]; + byte[] sdata = new byte[data.Length]; Array.Copy(data, sdata, 8); // Copy unshuffled bytes // Shuffle Away!