From cac0ee3eaa0e8f6b46577fbb7e4a5e96b48745ff Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 3 Nov 2025 15:24:21 -0600 Subject: [PATCH] Update PKMEditor.cs Closes #4626 --- 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 2d0ff7e98..89aa0dd8e 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs @@ -1011,7 +1011,7 @@ private void UpdateRandomEC(object sender, EventArgs e) private void Update255_MTB(object sender, EventArgs e) { - if (sender is not MaskedTextBox tb) + if (sender is not MaskedTextBox tb || !FieldsLoaded) return; if (Util.ToInt32(tb.Text) > byte.MaxValue) tb.Text = "255";