diff --git a/code/game/atoms.dm b/code/game/atoms.dm index b4cbc3ce3d5..6dfa790ddcf 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -325,8 +325,10 @@ LAZYNULL(managed_overlays) - QDEL_NULL(light) QDEL_NULL(ai_controller) + QDEL_NULL(light) + if (length(light_sources)) + light_sources.Cut() if(smoothing_flags & SMOOTH_QUEUED) SSicon_smooth.remove_from_queues(src) diff --git a/code/modules/mining/minebot.dm b/code/modules/mining/minebot.dm index e09ae57ebd5..8ba7dc8f8bc 100644 --- a/code/modules/mining/minebot.dm +++ b/code/modules/mining/minebot.dm @@ -64,6 +64,7 @@ SetCollectBehavior() /mob/living/simple_animal/hostile/mining_drone/Destroy() + QDEL_NULL(stored_gun) for (var/datum/action/innate/minedrone/action in actions) qdel(action) return ..() diff --git a/code/modules/mob/living/simple_animal/bot/firebot.dm b/code/modules/mob/living/simple_animal/bot/firebot.dm index 82a10b14639..650b28fcb63 100644 --- a/code/modules/mob/living/simple_animal/bot/firebot.dm +++ b/code/modules/mob/living/simple_animal/bot/firebot.dm @@ -49,6 +49,10 @@ create_extinguisher() AddElement(/datum/element/atmos_sensitive, mapload) +/mob/living/simple_animal/bot/firebot/Destroy() + QDEL_NULL(internal_ext) + return ..() + /mob/living/simple_animal/bot/firebot/bot_reset() create_extinguisher() diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index 1e574f433a5..3f206619222 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -221,6 +221,7 @@ adjustStaminaLoss(-stamina_recovery * delta_time, FALSE, TRUE) /mob/living/simple_animal/Destroy() + QDEL_NULL(access_card) GLOB.simple_animals[AIStatus] -= src SSnpcpool.currentrun -= src diff --git a/code/modules/projectiles/guns/ballistic/automatic.dm b/code/modules/projectiles/guns/ballistic/automatic.dm index 6b9f4258a77..d006e3e4138 100644 --- a/code/modules/projectiles/guns/ballistic/automatic.dm +++ b/code/modules/projectiles/guns/ballistic/automatic.dm @@ -167,6 +167,10 @@ underbarrel = new /obj/item/gun/ballistic/revolver/grenadelauncher(src) update_appearance() +/obj/item/gun/ballistic/automatic/m90/Destroy() + QDEL_NULL(underbarrel) + return ..() + /obj/item/gun/ballistic/automatic/m90/unrestricted pin = /obj/item/firing_pin diff --git a/modular_skyrat/master_files/code/modules/projectiles/guns/ballistic/automatic.dm b/modular_skyrat/master_files/code/modules/projectiles/guns/ballistic/automatic.dm index 0d1ccc310e8..6864d0611b6 100644 --- a/modular_skyrat/master_files/code/modules/projectiles/guns/ballistic/automatic.dm +++ b/modular_skyrat/master_files/code/modules/projectiles/guns/ballistic/automatic.dm @@ -126,6 +126,10 @@ underbarrel = new /obj/item/gun/ballistic/revolver/grenadelauncher(src) update_appearance() +/obj/item/gun/ballistic/automatic/m90/Destroy() + QDEL_NULL(underbarrel) + return ..() + /obj/item/gun/ballistic/automatic/m90/unrestricted pin = /obj/item/firing_pin