From e3793a14ee8e653360e31148d29c0089fd9f4223 Mon Sep 17 00:00:00 2001 From: Fox McCloud Date: Sun, 5 Jul 2020 01:21:09 -0400 Subject: [PATCH] Further New Player GC Fixes --- code/datums/mind.dm | 3 +++ code/modules/mob/new_player/new_player.dm | 1 + 2 files changed, 4 insertions(+) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index dadc8bc6e31..54635f01b0a 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -89,6 +89,9 @@ if(antag_datum.delete_on_mind_deletion) qdel(i) antag_datums = null + current = null + original = null + soulOwner = null return ..() /datum/mind/proc/transfer_to(mob/living/new_character) diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index 9107d7d09ae..f53daba6626 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -210,6 +210,7 @@ if(!client.holder && !config.antag_hud_allowed) // For new ghosts we remove the verb from even showing up if it's not allowed. observer.verbs -= /mob/dead/observer/verb/toggle_antagHUD // Poor guys, don't know what they are missing! observer.key = key + QDEL_NULL(mind) GLOB.respawnable_list += observer qdel(src) return 1