From dff00fe4bdfd83cc7b85906c1c387fb485936c3e Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Wed, 15 May 2024 10:42:50 +0300 Subject: [PATCH] [MIRROR] Fixes destroyed solar panels dropping overlays (#2465) (#3302) * 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: * Fixes destroyed solar panels dropping overlays --------- Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com> Co-authored-by: Lufferly <40921881+Lufferly@users.noreply.github.com> Co-authored-by: NovaBot13 --- 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)