Mind fixes (#30179)

This commit is contained in:
Charlie Nolan
2025-08-19 20:49:02 +00:00
committed by GitHub
parent 65eed9df33
commit 886eb158db
3 changed files with 21 additions and 15 deletions
+4 -1
View File
@@ -135,8 +135,11 @@
RegisterSignal(current, COMSIG_PARENT_QDELETING, PROC_REF(archive_deleted_body), override = TRUE)
/datum/mind/proc/unbind()
if(isnull(current))
return
UnregisterSignal(current, COMSIG_PARENT_QDELETING)
current.mind = null
if(current.mind == src)
current.mind = null
current = null
/datum/mind/proc/transfer_to(mob/living/new_character)