From 9f8e6173c39be6ee9b1da17444d3d0fb1df545cb Mon Sep 17 00:00:00 2001 From: Evan Dixon Date: Wed, 9 Nov 2016 09:33:59 -0600 Subject: [PATCH] Possible fix for issue #347 (999 item count becomes 39) (#349) --- PKHeX/Saves/Substructures/Inventory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX/Saves/Substructures/Inventory.cs b/PKHeX/Saves/Substructures/Inventory.cs index fabc5ff7b..96cc5124d 100644 --- a/PKHeX/Saves/Substructures/Inventory.cs +++ b/PKHeX/Saves/Substructures/Inventory.cs @@ -106,7 +106,7 @@ public void setPouch7(ref byte[] Data) Items[i].New |= OriginalItems.All(z => z.Index != Items[i].Index); if (Items[i].New) val |= 0x40000000; - BitConverter.GetBytes((ushort)val).CopyTo(Data, Offset + i * 4); + BitConverter.GetBytes(val).CopyTo(Data, Offset + i * 4); } }