From de8bed982e7b7d8f77204e46c4e95811c6019555 Mon Sep 17 00:00:00 2001 From: sora10pls <17801814+sora10pls@users.noreply.github.com> Date: Sat, 11 Sep 2021 11:24:32 -0400 Subject: [PATCH] Update Item8.cs --- pkNX.Structures/Item/Item8.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkNX.Structures/Item/Item8.cs b/pkNX.Structures/Item/Item8.cs index 33e73624..ade65c85 100644 --- a/pkNX.Structures/Item/Item8.cs +++ b/pkNX.Structures/Item/Item8.cs @@ -16,20 +16,20 @@ public Item8(int id, byte[] data) public int Price { - get => BitConverter.ToInt16(Data, 0x00); - set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x00); + get => BitConverter.ToUInt16(Data, 0x00); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x00); } public int PriceWatts { - get => BitConverter.ToInt16(Data, 0x04); - set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x04); + get => BitConverter.ToUInt16(Data, 0x04); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x04); } public int PriceAlternate // BP, Dynite Ore { - get => BitConverter.ToInt16(Data, 0x08); - set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x08); + get => BitConverter.ToUInt16(Data, 0x08); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x08); } public PouchID Pouch