mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
load stats prior to searching
https://projectpokemon.org/home/forums/topic/43579-bug-pkhex-number-fields/
This commit is contained in:
parent
5472f869cf
commit
bb20ec49cc
1 changed files with 5 additions and 0 deletions
|
@ -363,6 +363,11 @@ namespace PKHeX.WinForms
|
|||
.Concat(SAV.BoxData.Where(pk => pk.Species != 0)) // Fetch from save file
|
||||
.Where(pk => pk.ChecksumValid && pk.Species != 0 && pk.Sanity == 0)
|
||||
.Distinct());
|
||||
|
||||
// Load stats for pkm who do not have any
|
||||
foreach (var pk in RawDB.Where(z => z.Stat_Level == 0))
|
||||
pk.SetStats(pk.GetStats(pk.PersonalInfo));
|
||||
|
||||
try
|
||||
{
|
||||
BeginInvoke(new MethodInvoker(() => SetResults(RawDB)));
|
||||
|
|
Loading…
Reference in a new issue