adds brain null check to /mob/living/carbon/human/handle_critical_condition() (#29457)

This commit is contained in:
chuga-git
2025-05-26 18:46:38 -05:00
committed by GitHub
parent 0715788b37
commit ffd2215f94
@@ -625,7 +625,7 @@
var/guaranteed_death_threshold = health + (getOxyLoss() * 0.5) - (getFireLoss() * 0.67) - (getBruteLoss() * 0.67)
var/obj/item/organ/internal/brain = get_int_organ(/obj/item/organ/internal/brain)
if(brain?.damage >= brain.max_damage || (guaranteed_death_threshold) <= -500)
if(brain?.damage >= brain?.max_damage || guaranteed_death_threshold <= -500)
death()
return