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.
This commit is contained in:
MrPerson
2014-08-05 18:50:09 -07:00
parent 17760cc8fc
commit c813d9df46
@@ -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