From 5ba46eb51755a591027429afe49316a70ed4120f Mon Sep 17 00:00:00 2001 From: Ghommie Date: Wed, 12 Jun 2019 23:20:34 +0200 Subject: [PATCH] Avoid runtiming. --- code/game/objects/items/stunbaton.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/stunbaton.dm b/code/game/objects/items/stunbaton.dm index dae9545fbb..d85295377c 100644 --- a/code/game/objects/items/stunbaton.dm +++ b/code/game/objects/items/stunbaton.dm @@ -58,7 +58,7 @@ //if a stun is applied or not copper_top.use(min(chrgdeductamt, copper_top.charge), explode) - if(status && (!copper_top.charge || (chargecheck && copper_top.charge < (hitcost * STUNBATON_CHARGE_LENIENCY)))) + if(status && (!(copper_top?.charge) || (chargecheck && copper_top.charge < (hitcost * STUNBATON_CHARGE_LENIENCY)))) //we're below minimum, turn off switch_status(FALSE)