From d41fc571d05dfa8c455f5cd25c0be338b0e0a3fa Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 20 May 2021 16:54:53 -0700 Subject: [PATCH] Keep original trashbytes if string isn't changed Similar to nickname setter --- PKHeX.Core/PKM/Shared/GBPKML.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/PKM/Shared/GBPKML.cs b/PKHeX.Core/PKM/Shared/GBPKML.cs index ecbe60ece..c205619de 100644 --- a/PKHeX.Core/PKM/Shared/GBPKML.cs +++ b/PKHeX.Core/PKM/Shared/GBPKML.cs @@ -90,7 +90,12 @@ public sealed override string OT_Name return StringConverter2KOR.GetString2KOR(otname, 0, otname.Length); return StringConverter12.GetString1(otname, 0, otname.Length, Japanese); } - set => SetStringKeepTerminatorStyle(value, otname); + set + { + if (value == OT_Name) + return; + SetStringKeepTerminatorStyle(value, otname); + } } private void SetStringKeepTerminatorStyle(string value, byte[] exist)