fix observer hard del (#22165)

The Planemasters Update gave observers a hud reference to store, but no
Destroy() method was added for them to clear this reference when
despawning, which caused a hard del. Pretty simple fix.
This commit is contained in:
VMSolidus
2026-04-07 20:40:58 +00:00
committed by GitHub
parent e8944e087d
commit 2af48cf40e
2 changed files with 8 additions and 0 deletions
@@ -84,6 +84,10 @@
name = capitalize(pick(GLOB.first_names_male)) + " " + capitalize(pick(GLOB.last_names))
real_name = name
/mob/abstract/ghost/observer/Destroy()
QDEL_NULL(hud)
return ..()
/mob/abstract/ghost/observer/proc/initialise_postkey(set_timers = TRUE)
//This function should be run after a ghost has been created and had a ckey assigned
if (!set_timers)