Skip to content

Commit

Permalink
Fix bug in med_hud_set_health() for xenomorphs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Nov 17, 2023
1 parent 145da65 commit 126309c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/datums/mob_hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ var/list/datum/mob_hud/huds = list(
return

/mob/living/carbon/xenomorph/med_hud_set_health()
if(QDELETED(src))
return

if(!(HEALTH_HUD_XENO in hud_list))
CRASH("hud_list lacks HEALTH_HUD_XENO despite not being deleted in med_hud_set_health()")

var/image/holder = hud_list[HEALTH_HUD_XENO]

var/health_hud_type = "xenohealth"
Expand Down

0 comments on commit 126309c

Please sign in to comment.