Call slot compression

Doesn't work correctly (data shifted down still persists)
This commit is contained in:
Kurt 2018-11-14 22:20:59 -08:00
parent 1feecef874
commit 644fa4e929
2 changed files with 4 additions and 1 deletions

View file

@ -79,7 +79,7 @@ namespace PKHeX.Core
get => PokeListInfo[FOLLOW];
set
{
if ((ushort)value > 1000)
if ((ushort)value > 1000 && value != SLOT_EMPTY)
throw new ArgumentException(nameof(value));
PokeListInfo[FOLLOW] = (ushort)value;
}

View file

@ -716,6 +716,9 @@ namespace PKHeX.WinForms.Controls
public bool ExportSaveFile()
{
ValidateChildren();
bool reload = SAV is SAV7b b && b.FixPreWrite();
if (reload)
ReloadSlots();
return WinFormsUtil.SaveSAVDialog(SAV, SAV.CurrentBox);
}