mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user