From 294a61c4c128f14e45dea697e2e41d19ff09b1df Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 25 Apr 2018 20:17:58 -0700 Subject: [PATCH] Update pkmeditor GB gui loop behavior updating HP causes SPD to be updated, which is based on SPA; since SPA is yet to be updated, we trigger constant updates on an SPA > 15 until we crash. just use the SPD IV which is already capped by the pkmdata (this shouldn't refresh fields anyway when loading... whatever). Closes #1914 --- PKHeX.WinForms/Controls/PKM Editor/StatEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Controls/PKM Editor/StatEditor.cs b/PKHeX.WinForms/Controls/PKM Editor/StatEditor.cs index 40aa120a8..45dadb3ec 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/StatEditor.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/StatEditor.cs @@ -103,7 +103,7 @@ private void RefreshDerivedValues(object sender) if (pkm.Format < 3) { TB_HPIV.Text = pkm.IV_HP.ToString(); - TB_SPDIV.Text = TB_SPAIV.Text; + TB_SPDIV.Text = pkm.IV_SPD.ToString(); MainEditor.UpdateIVsGB(sender == null); }