mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-08 17:07:00 -05:00
Call slot compression
Doesn't work correctly (data shifted down still persists)
This commit is contained in:
@@ -79,7 +79,7 @@ public int FollowerIndex
|
||||
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 @@ private static bool IsFolderPath(out string path)
|
||||
public bool ExportSaveFile()
|
||||
{
|
||||
ValidateChildren();
|
||||
bool reload = SAV is SAV7b b && b.FixPreWrite();
|
||||
if (reload)
|
||||
ReloadSlots();
|
||||
return WinFormsUtil.SaveSAVDialog(SAV, SAV.CurrentBox);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user