From 5ae34854c78eba28ddbbb52102dea801e316fbe4 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 30 May 2022 18:17:12 -0700 Subject: [PATCH] Fix extrabyte load behavior funny how nobody caught this for so long haha Don't trigger a write on validation/during a load. --- PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs index 2b6a39433..15b895db8 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs @@ -1211,7 +1211,7 @@ private void ReloadMetLocations(GameVersion version, int format) private void UpdateExtraByteValue(object sender, EventArgs e) { - if (CB_ExtraBytes.Items.Count == 0 || sender is not MaskedTextBox mtb) + if (!FieldsLoaded || CB_ExtraBytes.Items.Count == 0 || sender is not MaskedTextBox mtb) return; // Changed Extra Byte's Value var value = Util.ToInt32(mtb.Text);