From 43fe8dd34906d52e8261ef24aca526340446aeee Mon Sep 17 00:00:00 2001 From: Ghom <42542238+Ghommie@users.noreply.github.com> Date: Sun, 14 Jan 2024 11:07:29 +0100 Subject: [PATCH] fixes null plane debuggers for admins (#80939) ## About The Pull Request Yeah, why would we delete the plane debugger while the admin is active? ## Why It's Good For The Game Broken debugging tool. ## Changelog N/A --- code/modules/admin/holder2.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm index 4df4e19b709..e98016df74f 100644 --- a/code/modules/admin/holder2.dm +++ b/code/modules/admin/holder2.dm @@ -73,7 +73,6 @@ GLOBAL_PROTECT(href_token) activate() else deactivate() - plane_debug = new(src) /datum/admins/Destroy() if(IsAdminAdvancedProcCall()) @@ -88,7 +87,7 @@ GLOBAL_PROTECT(href_token) GLOB.deadmins -= target GLOB.admin_datums[target] = src deadmined = FALSE - QDEL_NULL(plane_debug) + plane_debug = new(src) if (GLOB.directory[target]) associate(GLOB.directory[target]) //find the client for a ckey if they are connected and associate them with us @@ -99,6 +98,7 @@ GLOBAL_PROTECT(href_token) return GLOB.deadmins[target] = src GLOB.admin_datums -= target + QDEL_NULL(plane_debug) deadmined = TRUE var/client/client = owner || GLOB.directory[target]