Merge pull request #11951 from Putnam3145/fix-liver-runtime

Fixes a runtime in livers.
This commit is contained in:
Ghom
2020-04-20 23:11:31 +02:00
committed by GitHub
+1 -1
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))