From 43d77d0517c44ca0152e4f45fd2a64cdaf647314 Mon Sep 17 00:00:00 2001 From: Verkister Date: Sat, 13 Feb 2021 18:24:13 +0200 Subject: [PATCH] Fixes animal type simplemobs runtiming on deletion The code was trying to delete the actual organs while the animal mobs use that list for storing just typepaths to spawn when butchered. --- code/modules/mob/living/living.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 9fe9224488..e4990388c3 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -41,7 +41,7 @@ organs -= OR qdel(OR) - if(LAZYLEN(internal_organs)) + if(LAZYLEN(internal_organs) && !istype(src, /mob/living/simple_mob/animal)) internal_organs_by_name.Cut() while(internal_organs.len) var/obj/item/OR = internal_organs[1] @@ -1083,4 +1083,4 @@ // Tries to turn off things that let you see through walls, like mesons. // Each mob does vision a bit differently so this is just for inheritence and also so overrided procs can make the vision apply instantly if they call `..()`. /mob/living/proc/disable_spoiler_vision() - handle_vision() \ No newline at end of file + handle_vision()