[MIRROR] fix organ deletion (#11745)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-09-26 10:27:00 -07:00
committed by GitHub
parent 8d367d0f2b
commit 92e1f33ebc

View File

@@ -95,11 +95,12 @@
organs -= OR
qdel(OR)
if(LAZYLEN(internal_organs) && !istype(src, /mob/living/simple_mob/animal))
if(LAZYLEN(internal_organs))
internal_organs_by_name.Cut()
while(internal_organs.len)
var/obj/item/OR = internal_organs[1]
internal_organs -= OR
if(isobj(OR))
qdel(OR)
cultnet.updateVisibility(src, 0)