Fix count set

flag2 -> count, no longer need to downcast to byte
This commit is contained in:
Kurt 2020-04-03 13:17:26 -07:00
parent b6e19f079d
commit 3eb8b4eabd

View File

@ -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;