mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-22 16:12:36 +00:00
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.
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
organs -= OR
|
organs -= OR
|
||||||
qdel(OR)
|
qdel(OR)
|
||||||
|
|
||||||
if(LAZYLEN(internal_organs))
|
if(LAZYLEN(internal_organs) && !istype(src, /mob/living/simple_mob/animal))
|
||||||
internal_organs_by_name.Cut()
|
internal_organs_by_name.Cut()
|
||||||
while(internal_organs.len)
|
while(internal_organs.len)
|
||||||
var/obj/item/OR = internal_organs[1]
|
var/obj/item/OR = internal_organs[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user