Skip to content

Commit 482c680

Browse files
committed
Fixed moneyUpDown.
1 parent a9bcf74 commit 482c680

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

CP2077SaveEditor/Views/Form1.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,14 @@ public bool RefreshInventory(string search = "", int searchField = -1)
424424
listViewRows.Add(newItem);
425425
if (item.ItemTdbId.GameName == "Eddies" && containerID == "1")
426426
{
427-
moneyUpDown.Value = ((ItemData.SimpleItemData)item.Data).Quantity;
427+
var money = ((ItemData.SimpleItemData)item.Data).Quantity;
428+
429+
if(money > moneyUpDown.Maximum)
430+
{
431+
moneyUpDown.Maximum = money;
432+
}
433+
434+
moneyUpDown.Value = money;
428435
moneyUpDown.Enabled = true;
429436
}
430437
}

0 commit comments

Comments
 (0)