Skip to content

Commit

Permalink
bugfix: runtime null.controlling (#5972)
Browse files Browse the repository at this point in the history
fast fast fast
  • Loading branch information
Antoonij authored Oct 3, 2024
1 parent 86ec6b6 commit cb4a0e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/gamemodes/miniantags/borer/borer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cb4a0e2

Please sign in to comment.