Fixes a runtime in livers.

This commit is contained in:
Putnam
2020-04-20 11:10:43 -07:00
parent 24370db5eb
commit 5df4287c8d

View File

@@ -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))