mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
Call slot compression
Doesn't work correctly (data shifted down still persists)
This commit is contained in:
parent
1feecef874
commit
644fa4e929
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue