From e68cb3656fc80262024ed2eea21c2191f3026c19 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Fri, 24 Feb 2023 23:55:33 -0600 Subject: [PATCH] fixes new players logging out causing a GC fail (#20340) --- code/modules/mob/new_player/new_player_logout.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/mob/new_player/new_player_logout.dm b/code/modules/mob/new_player/new_player_logout.dm index 307cd6ab557..07b27545027 100644 --- a/code/modules/mob/new_player/new_player_logout.dm +++ b/code/modules/mob/new_player/new_player_logout.dm @@ -2,6 +2,7 @@ ready = FALSE ..() if(!spawning)//Here so that if they are spawning and log out, the other procs can play out and they will have a mob to come back to. + mind.current = null // We best null their mind as well, otherwise /every/ single new player is going to explode the server a little more by logging out key = null//We null their key before deleting the mob, so they are properly kicked out. qdel(src) return