From c129c0d663bf8278e37580b98f7bf3aacaa397b2 Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Fri, 1 Jul 2016 21:21:15 -0700 Subject: [PATCH] Fix cast should have been included in the previous commit --- Saves/Inventory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Saves/Inventory.cs b/Saves/Inventory.cs index 05e1218ff..036bb9e39 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 ^ (ushort)SecurityKey).CopyTo(Data, Offset + i*4 + 2); + BitConverter.GetBytes((ushort)((ushort)Items[i].Count ^ (ushort)SecurityKey)).CopyTo(Data, Offset + i*4 + 2); } } }