fixes new players logging out causing a GC fail (#20340)

This commit is contained in:
GDN
2023-02-24 23:55:33 -06:00
committed by GitHub
parent 820735487c
commit e68cb3656f
@@ -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