From 26b0ee7c8fd8412d8cef1e63a4a5f0664196b0bf Mon Sep 17 00:00:00 2001 From: S34NW <12197162+S34NW@users.noreply.github.com> Date: Fri, 25 Jun 2021 19:07:32 +0100 Subject: [PATCH] code review part 2 --- code/game/mecha/equipment/tools/work_tools.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/game/mecha/equipment/tools/work_tools.dm b/code/game/mecha/equipment/tools/work_tools.dm index 0c0bfd0ccd0..0f3dfa8a636 100644 --- a/code/game/mecha/equipment/tools/work_tools.dm +++ b/code/game/mecha/equipment/tools/work_tools.dm @@ -33,13 +33,12 @@ if(isobj(target)) var/obj/O = target if(istype(target, /obj/machinery/power/supermatter_crystal)) //No, you can't pick up the SM with this you moron, did you think you were clever? - var/obj/machinery/power/supermatter_crystal/SM = target var/obj/mecha/working/ripley/R = chassis if(R.cargo) - R.cargo.Cut() //We don't want to drop cargo that just spam hits the SM, let's delete it + QDEL_LIST(R.cargo) //We don't want to drop cargo that just spam hits the SM, let's delete it occupant_message("You realise in horror what you have done as [chassis] starts warping around you!") chassis.occupant.dust() - SM.Bumped(chassis) + target.Bumped(chassis) return if(O.anchored) occupant_message("[target] is firmly secured!")