Skip to content

Commit

Permalink
Fixed moneyUpDown.
Browse files Browse the repository at this point in the history
  • Loading branch information
Deweh committed Apr 9, 2021
1 parent a9bcf74 commit 482c680
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CP2077SaveEditor/Views/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,14 @@ public bool RefreshInventory(string search = "", int searchField = -1)
listViewRows.Add(newItem);
if (item.ItemTdbId.GameName == "Eddies" && containerID == "1")
{
moneyUpDown.Value = ((ItemData.SimpleItemData)item.Data).Quantity;
var money = ((ItemData.SimpleItemData)item.Data).Quantity;

if(money > moneyUpDown.Maximum)
{
moneyUpDown.Maximum = money;
}

moneyUpDown.Value = money;
moneyUpDown.Enabled = true;
}
}
Expand Down

0 comments on commit 482c680

Please sign in to comment.