From c813d9df46c1acc92cf6df77bcdee2aaf1493d06 Mon Sep 17 00:00:00 2001 From: MrPerson Date: Tue, 5 Aug 2014 18:50:09 -0700 Subject: [PATCH] Make new_players GC when observing When observing, that observer would be given their original new_player's mind, but that mind would still have the new_player as its current. This caused the new_player to fail to GC and resulted in the observer's mind's current becoming null. Fix: Just delete the new_player mind when the player observes. If an admin turns them into a human or whatever, a new mind will be created automatically then. --- code/modules/mob/new_player/new_player.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index 059df6d486b..0ebc94fedd1 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -119,6 +119,7 @@ observer.real_name = client.prefs.real_name observer.name = observer.real_name observer.key = key + qdel(mind) qdel(src) return 1