From af735ed4002f6e8f1209c745001309855cfad42e Mon Sep 17 00:00:00 2001 From: chuga-git <98280110+chuga-git@users.noreply.github.com> Date: Thu, 8 Aug 2024 11:11:56 -0500 Subject: [PATCH] Fixes flash check runtime when flashee does not have eyes (#26409) * fixes null runtime * the ASCII code for " " is 32, or in 0x0020 in hexadecimal * Update code/modules/mob/living/carbon/carbon_procs.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: chuga-git <98280110+chuga-git@users.noreply.github.com> --------- Signed-off-by: chuga-git <98280110+chuga-git@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --- code/modules/mob/living/carbon/carbon_procs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/carbon_procs.dm b/code/modules/mob/living/carbon/carbon_procs.dm index 0ed5f5913e1..96e2b82b801 100644 --- a/code/modules/mob/living/carbon/carbon_procs.dm +++ b/code/modules/mob/living/carbon/carbon_procs.dm @@ -350,7 +350,7 @@ var/obj/item/organ/internal/eyes/E = get_int_organ(/obj/item/organ/internal/eyes) . = ..() - if((E && (E.status & ORGAN_DEAD)) || !. || E.is_broken()) + if((E?.status & ORGAN_DEAD) || E?.is_broken() || !.) return FALSE /mob/living/carbon/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, laser_pointer = FALSE, type = /atom/movable/screen/fullscreen/stretch/flash)