Skip to content

Commit

Permalink
Fixed default value in cash splitting being out of bounds for tgui_in…
Browse files Browse the repository at this point in the history
…put_numbers
  • Loading branch information
fira committed Oct 13, 2023
1 parent a32d8cd commit fd2e3ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/economy/cash.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
/obj/item/spacecash/bundle/attack_self(mob/user)
..()
var/oldloc = loc
var/amount = tgui_input_number(user, "How many dollars do you want to take? (0 to [src.worth])", "Take Money", 20, src.worth, 0)
var/amount = tgui_input_number(user, "How many dollars do you want to take? (0 to [src.worth])", "Take Money", 0, src.worth, 0)
amount = round(Clamp(amount, 0, src.worth))
if(amount == 0)
return
Expand Down

0 comments on commit fd2e3ff

Please sign in to comment.