From cb4a0e2bd373b52a186b112f48cc71c754a753ce Mon Sep 17 00:00:00 2001 From: Antoonij <42318445+Antoonij@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:47:48 +0200 Subject: [PATCH] bugfix: runtime null.controlling (#5972) fast fast fast --- code/game/gamemodes/miniantags/borer/borer.dm | 2 +- code/modules/mob/living/carbon/human/human.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/gamemodes/miniantags/borer/borer.dm b/code/game/gamemodes/miniantags/borer/borer.dm index 1fc5b66472a..a5630059f34 100644 --- a/code/game/gamemodes/miniantags/borer/borer.dm +++ b/code/game/gamemodes/miniantags/borer/borer.dm @@ -669,7 +669,7 @@ /mob/living/carbon/proc/BorerControlling() var/mob/living/simple_animal/borer/borer = has_brain_worms() - if(borer?.controlling) + if(borer && borer.controlling) return TRUE return FALSE diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index d1f4884f11f..c2031b5d9cf 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -229,7 +229,7 @@ // I REALLY need to split up status panel things into datums var/mob/living/simple_animal/borer/borer = has_brain_worms() - if(borer?.controlling) + if(borer && borer.controlling) status_tab_data[++status_tab_data.len] = list("Chemicals", borer.chemicals) status_tab_data[++status_tab_data.len] = list("Rank", borer.antag_datum.borer_rank.rankname) status_tab_data[++status_tab_data.len] = list("Evolution points", borer.antag_datum.evo_points)