Update modified check

takes negligibly longer but accomplishes the necessary task
Closes #1782
This commit is contained in:
Kurt 2018-01-27 10:15:56 -08:00
parent 0e7350ee9e
commit 79add8dff1

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.Take(pkSAV.SIZE_STORED).SequenceEqual(pk.Data)) // data still exists in SAV, unmodified
if (!pkSAV.DecryptedBoxData.SequenceEqual(pk.DecryptedBoxData)) // 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;