From 418f1c772d18c3c8a2648e2ca3aeaebf98dffa71 Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Fri, 1 Jul 2016 17:06:45 -0700 Subject: [PATCH] Fix gen3 pouch set --- Saves/Inventory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Saves/Inventory.cs b/Saves/Inventory.cs index f02fb109f..05e1218ff 100644 --- a/Saves/Inventory.cs +++ b/Saves/Inventory.cs @@ -58,7 +58,7 @@ public void setPouch(ref byte[] Data) for (int i = 0; i < Items.Length; i++) { BitConverter.GetBytes((ushort)Items[i].Index).CopyTo(Data, Offset + i*4); - BitConverter.GetBytes((ushort)Items[i].Count).CopyTo(Data, Offset + i*4 + 2); + BitConverter.GetBytes((ushort)Items[i].Count ^ (ushort)SecurityKey).CopyTo(Data, Offset + i*4 + 2); } } }