From a162ee5922d295326eed8a8d53b046687f72a488 Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Wed, 14 Sep 2022 10:49:54 -0400 Subject: [PATCH] Fixes SSEconomy not tracking free vending machine purchases (#69876) --- code/controllers/subsystem/economy.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/subsystem/economy.dm b/code/controllers/subsystem/economy.dm index 806e08c1856..d069efe7a86 100644 --- a/code/controllers/subsystem/economy.dm +++ b/code/controllers/subsystem/economy.dm @@ -219,7 +219,7 @@ SUBSYSTEM_DEF(economy) * * vendor: The object or structure medium that is charging the user. For Vending machines that's the machine, for payment component that's the parent, cargo that's the crate, etc. */ /datum/controller/subsystem/economy/proc/track_purchase(datum/bank_account/account, price_to_use, vendor) - if(!account || !price_to_use || !vendor) + if(!account || isnull(price_to_use) || !vendor) CRASH("Track purchases was missing an argument! (Account, Price, or Vendor.)") audit_log += list(list(