diff --git a/PKX/f1-Main.cs b/PKX/f1-Main.cs index 683e3d50a..4735f53cf 100644 --- a/PKX/f1-Main.cs +++ b/PKX/f1-Main.cs @@ -2333,7 +2333,7 @@ private byte[] preparepkx(bool click = true) // Block D // Convert OT field back to bytes byte[] OT = Encoding.Unicode.GetBytes(TB_OT.Text.Replace("\u0027", "\u2019")); - Array.Resize(ref OT, 24); + Array.Resize(ref OT, OT.Length + 2); // Pad with \0000 to terminate Array.Copy(OT, 0, pkx, 0xB0, OT.Length); if (pkx[0x93] == 0)