From ca92ca470447eb468df8bf270eaf2d08b319723f Mon Sep 17 00:00:00 2001 From: Lufferly <40921881+Lufferly@users.noreply.github.com> Date: Tue, 14 May 2024 17:22:38 -0700 Subject: [PATCH] Fixes destroyed solar panels dropping overlays (#83224) ## About The Pull Request Fixes #82301 It feels like im missing something here so if this isnt the right way to fix this (deleting the overlays on the solar panels Destroy() ) please tell me. ## Why It's Good For The Game Bugfix ## Changelog :cl: Seven fix: Destroyed solar panels no longer drop their overlays /:cl: --- code/modules/power/solar.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm index 9b47c133705..370140a4f74 100644 --- a/code/modules/power/solar.dm +++ b/code/modules/power/solar.dm @@ -42,6 +42,8 @@ /obj/machinery/power/solar/Destroy() unset_control() //remove from control computer + QDEL_NULL(panel) + QDEL_NULL(panel_edge) return ..() /obj/machinery/power/solar/on_changed_z_level(turf/old_turf, turf/new_turf, same_z_layer, notify_contents)