diff --git a/code/modules/mob/abstract/ghost/observer/observer.dm b/code/modules/mob/abstract/ghost/observer/observer.dm index b352c24290d..97f47bf0111 100644 --- a/code/modules/mob/abstract/ghost/observer/observer.dm +++ b/code/modules/mob/abstract/ghost/observer/observer.dm @@ -85,7 +85,12 @@ real_name = name /mob/abstract/ghost/observer/Destroy() + if(client) + for(var/image/I in client.images) + if(I.loc == src) + qdel(I) QDEL_NULL(hud) + mind = null return ..() /mob/abstract/ghost/observer/proc/initialise_postkey(set_timers = TRUE) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index cec039d6388..fe433e932b9 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -7,6 +7,7 @@ GLOB.mob_list -= src GLOB.dead_mob_list -= src GLOB.living_mob_list -= src + GLOB.player_list -= src unset_machine() QDEL_NULL(hud_used) diff --git a/html/changelogs/hellfirejag-another-observer-harddel.yml b/html/changelogs/hellfirejag-another-observer-harddel.yml new file mode 100644 index 00000000000..a3b2c68e481 --- /dev/null +++ b/html/changelogs/hellfirejag-another-observer-harddel.yml @@ -0,0 +1,4 @@ +author: Hellfirejag +delete-after: True +changes: + - bugfix: "Fixed another harddel related to observers."