Fix gen3 item quantity reads

Oops :)

Closes #3369
ty @MichiS97 !
This commit is contained in:
Kurt 2022-01-09 20:34:55 -08:00
parent 42fd9124a6
commit 1992f36c5b

View file

@ -22,7 +22,7 @@ namespace PKHeX.Core
items[i] = new InventoryItem
{
Index = ReadUInt16LittleEndian(entry),
Count = ReadUInt16LittleEndian(entry[..2]) ^ (ushort) SecurityKey,
Count = ReadUInt16LittleEndian(entry[2..]) ^ (ushort) SecurityKey,
};
}
Items = items;