From 1358ebbab2b5dcd2e638319a313493584a51cee5 Mon Sep 17 00:00:00 2001 From: Leshana Date: Mon, 10 Apr 2017 12:57:23 -0400 Subject: [PATCH] Actually make holocarp not delete you when derezzing. --- code/modules/mob/living/simple_animal/simple_animal_vr.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/mob/living/simple_animal/simple_animal_vr.dm b/code/modules/mob/living/simple_animal/simple_animal_vr.dm index 11a7bba236..40059d40ce 100644 --- a/code/modules/mob/living/simple_animal/simple_animal_vr.dm +++ b/code/modules/mob/living/simple_animal/simple_animal_vr.dm @@ -29,6 +29,13 @@ if(vore_active) init_belly() +// Release belly contents beforey being gc'd! +/mob/living/simple_animal/Destroy() + for(var/I in vore_organs) + var/datum/belly/B = vore_organs[I] + B.release_all_contents() // When your stomach is empty + ..() + // Update fullness based on size & quantity of belly contents /mob/living/simple_animal/proc/update_fullness() var/new_fullness = 0