From 422b11bb4217daf825d4a5bb9a5223405819f14c Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 20 Nov 2019 23:05:33 -0800 Subject: [PATCH] Clamp max bp for bad vals https://projectpokemon.org/home/forums/topic/55524-pkhex-191115e/ --- PKHeX.WinForms/Subforms/Save Editors/Gen8/SAV_Trainer8.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Subforms/Save Editors/Gen8/SAV_Trainer8.cs b/PKHeX.WinForms/Subforms/Save Editors/Gen8/SAV_Trainer8.cs index 4b84a3a10..23a8b35c8 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/Gen8/SAV_Trainer8.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/Gen8/SAV_Trainer8.cs @@ -28,7 +28,7 @@ namespace PKHeX.WinForms TrainerStats.LoadRecords(SAV, Records.RecordList_8); - NUD_BP.Value = SAV.Misc.BP; + NUD_BP.Value = Math.Min(SAV.Misc.BP, 9999); GetComboBoxes(); GetTextBoxes();