Ignore party stats on pkm compare

Stats were recently added to be calculated on load, thus not matching
the all-zeros when obtained from the save.
Closes #1781
This commit is contained in:
Kurt 2018-01-26 21:09:12 -08:00
parent c066df243f
commit f104df6386

View file

@ -179,7 +179,7 @@ namespace PKHeX.WinForms
int offset = SAV.GetBoxOffset(box) + slot*SAV.SIZE_STORED;
PKM pkSAV = SAV.GetStoredSlot(offset);
if (!pkSAV.Data.SequenceEqual(pk.Data)) // data still exists in SAV, unmodified
if (!pkSAV.Data.Take(pkSAV.SIZE_STORED).SequenceEqual(pk.Data)) // data still exists in SAV, unmodified
{
WinFormsUtil.Error("Database slot data does not match save data!", "Don't move Pokémon after initializing the Database, please re-open the Database viewer.");
return;