From b628f6e3d26fcce5a8d29435548c322278e1c48e Mon Sep 17 00:00:00 2001 From: Neerti Date: Mon, 15 Apr 2019 18:46:53 -0400 Subject: [PATCH 1/2] Merge pull request #6088 from Heroman3003/infinite-cash-no Fixes money duping bug --- code/modules/economy/cash.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/economy/cash.dm b/code/modules/economy/cash.dm index 8c67e5394c..c5a11275e8 100644 --- a/code/modules/economy/cash.dm +++ b/code/modules/economy/cash.dm @@ -78,6 +78,8 @@ /obj/item/weapon/spacecash/attack_self() var/amount = input(usr, "How many Thalers do you want to take? (0 to [src.worth])", "Take Money", 20) as num + if(!src || QDELETED(src)) + return amount = round(CLAMP(amount, 0, src.worth)) if(!amount)