From 3eb8b4eabd3a49b70e9fd57f9f3c82b2edda1540 Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 3 Apr 2020 13:17:26 -0700 Subject: [PATCH] Fix count set flag2 -> count, no longer need to downcast to byte --- NHSE.WinForms/Controls/ItemEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NHSE.WinForms/Controls/ItemEditor.cs b/NHSE.WinForms/Controls/ItemEditor.cs index 37d7534..8f752d2 100644 --- a/NHSE.WinForms/Controls/ItemEditor.cs +++ b/NHSE.WinForms/Controls/ItemEditor.cs @@ -34,7 +34,7 @@ public Item SetItem(Item item) { var id = WinFormsUtil.GetIndex(CB_ItemID); item.ItemId = (ushort) id; - item.Count = (byte) NUD_Count.Value; + item.Count = (ushort) NUD_Count.Value; item.UseCount = (ushort) NUD_Uses.Value; item.Flags0 = (byte) NUD_Flag0.Value; item.Flags1 = (byte) NUD_Flag1.Value;