Despawn NIF occupants in cryo

Fixes #2683
This commit is contained in:
Arokha Sieyes
2018-01-08 13:59:52 -05:00
parent 080a9234d6
commit 636f9601b7
2 changed files with 9 additions and 1 deletions

View File

@@ -48,7 +48,7 @@
nif.human.verbs |= /mob/living/carbon/human/proc/nme
uninstall()
if((. = ..()))
if((. = ..()) && nif && nif.human) //Sometimes NIFs are deleted outside of a human
nif.human.verbs -= /mob/living/carbon/human/proc/nsay
nif.human.verbs -= /mob/living/carbon/human/proc/nme
@@ -201,6 +201,7 @@
//Put the mind and player into the mob
M.mind.transfer_to(brainmob)
brainmob.name = brainmob.mind.name
brainmob.real_name = brainmob.mind.name
//If we caught our owner, special settings.
if(M == nif.human)