From 5df4287c8d4360f0a2dee544e3cf9c6a95e00fca Mon Sep 17 00:00:00 2001 From: Putnam Date: Mon, 20 Apr 2020 11:10:43 -0700 Subject: [PATCH] Fixes a runtime in livers. --- code/modules/surgery/organs/liver.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/surgery/organs/liver.dm b/code/modules/surgery/organs/liver.dm index 117a45cdbc..6e5ea0e111 100755 --- a/code/modules/surgery/organs/liver.dm +++ b/code/modules/surgery/organs/liver.dm @@ -52,7 +52,7 @@ /obj/item/organ/liver/applyOrganDamage(d, maximum = maxHealth) . = ..() - if(!.) + if(!. || QDELETED(owner)) return if(damage >= high_threshold) var/move_calc = 1+((round(damage) - high_threshold)/(high_threshold/3))