Skip to content

Commit

Permalink
Fix issue with null hud_used in
Browse files Browse the repository at this point in the history
stop_tracking_resin_mark
  • Loading branch information
Zonespace27 committed Nov 17, 2023
1 parent 145da65 commit 510e032
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/XenoProcs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,12 @@
to_chat(src, SPAN_INFO("shift click the compass to watch the mark, alt click to stop tracking"))

/mob/living/carbon/xenomorph/proc/stop_tracking_resin_mark(destroyed, silent = FALSE) //tracked_marker shouldnt be nulled outside this PROC!! >:C
if(QDELETED(src))
return

if(!hud_used)
CRASH("hud_used is null in stop_tracking_resin_mark")

var/atom/movable/screen/mark_locator/ML = hud_used.locate_marker
ML.overlays.Cut()

Expand Down

0 comments on commit 510e032

Please sign in to comment.