Fixes Runtime in 04_resleeving.dm,32: Cannot read null.ckey

proc name: copy to mob (/datum/category_item/player_setup_item/vore/resleeve/copy_to_mob)
And fixes Runtime in infocore.dm,175: code/modules/resleeving/infocore.dm:175:Assertion Failed: !deleted(M)
   proc name: init from mob (/datum/transhuman/body_record/proc/init_from_mob)
This commit is contained in:
Leshana
2017-05-22 14:21:36 -04:00
parent c3df48f949
commit 497f2cc2d3
@@ -24,6 +24,8 @@
/datum/category_item/player_setup_item/vore/resleeve/copy_to_mob(var/mob/living/carbon/human/character)
if(character && !istype(character,/mob/living/carbon/human/dummy))
spawn(50)
if(deleted(character) || deleted(pref))
return // They might have been deleted during the wait
if(pref.resleeve_scan)
var/datum/transhuman/body_record/BR = new() //Clearly related to size.
BR.init_from_mob(character, pref.resleeve_scan, pref.resleeve_lock)