Skip to content

Commit

Permalink
Fix med_hud_set_health runtime for xenomorphs (#4951)
Browse files Browse the repository at this point in the history
# About the pull request
Fixes below


![image](https://github.com/cmss13-devs/cmss13/assets/41448081/ef8b8ae6-9e23-420e-acbe-24ddf035b7e5)

Same rationale as #4948
  • Loading branch information
Zonespace27 committed Nov 19, 2023
1 parent e398d93 commit 9e45fbc
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 9e45fbc

Please sign in to comment.