mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
parent
e52838df37
commit
8cb82560f6
1 changed files with 3 additions and 7 deletions
|
@ -154,13 +154,9 @@ namespace PKHeX.WinForms
|
|||
}
|
||||
|
||||
// sanity check formes -- SM does not have totem form dex bits
|
||||
int count = ds.Count;
|
||||
for (int i = 1; i < ds.Count; i++)
|
||||
{
|
||||
int index = Dex.GetDexFormIndex(bspecies, count, i);
|
||||
if (index < 0)
|
||||
ds.RemoveAt(i); // always last entry, ends early
|
||||
}
|
||||
int count = SAV.Personal[bspecies].FormeCount;
|
||||
if (count < ds.Count)
|
||||
ds.RemoveAt(count); // remove last
|
||||
|
||||
LB_Forms.DataSource = ds;
|
||||
if (fspecies <= SAV.MaxSpeciesID)
|
||||
|
|
Loading…
Add table
Reference in a new issue