From bcd71c44c4c53532c1358329fb2f720ce43a0fc2 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Tue, 16 Jan 2018 23:17:30 -0500 Subject: [PATCH] POLARIS: zshadow del fix --- code/modules/multiz/zshadow.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/modules/multiz/zshadow.dm b/code/modules/multiz/zshadow.dm index 9419408c5a5..5fd0e38ac9d 100644 --- a/code/modules/multiz/zshadow.dm +++ b/code/modules/multiz/zshadow.dm @@ -20,14 +20,16 @@ if(!istype(L)) qdel(src) return - ..() // I'm cautious about this, but its the right thing to do. owner = L sync_icon(L) +/mob/zshadow/Destroy() + owner = null + ..() //But we don't return because the hint is wrong + return QDEL_HINT_QUEUE + /mob/Destroy() - if(shadow) - qdel(shadow) - shadow = null + qdel_null(shadow) . = ..() /mob/zshadow/examine(mob/user, distance, infix, suffix)