Fix sav4 load for daycare / gts slots

Closes #2481
This commit is contained in:
Kurt 2019-11-20 19:16:25 -08:00
parent 2aaa3763ee
commit 1be9a6f70d
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ namespace PKHeX.Core
{
return new List<SlotInfoMisc>
{
new SlotInfoMisc(sav.Data, 0, sav.GTS) {Type = StorageSlotType.GTS },
new SlotInfoMisc(sav.General, 0, sav.GTS) {Type = StorageSlotType.GTS },
};
}

View file

@ -19,7 +19,7 @@ namespace PKHeX.Core
Slot = slot;
Offset = offset;
PartyFormat = party;
Data = sav.Data;
Data = sav is SAV4 s ? s.General : sav.Data;
}
public SlotInfoMisc(byte[] data, int slot, int offset, bool party = false)