Reset IV backcolor if pkm cannot be hypertained (#2008)

fixes #2007
This commit is contained in:
Archit Date 2018-06-16 04:45:56 +08:00 committed by Kurt
parent e8d5252b8c
commit b9f4a554f0

View file

@ -210,8 +210,8 @@ namespace PKHeX.WinForms.Controls
private void LoadHyperTraining()
{
if (!(pkm is IHyperTrain h))
return;
for (int i = 0; i < MT_IVs.Length; i++)
foreach (var iv in MT_IVs) iv.ResetBackColor();
else for (int i = 0; i < MT_IVs.Length; i++)
UpdateHyperTrainingFlag(i, h.GetHT(i));
}
private void UpdateEVTotals()