[MIRROR] Silicon deletion cleanup (#846)

* Silicon deletion cleanup (#53680)

Law datums were referencing owner
Law datums were not being delled
Some MMI code was organized strangely

* Silicon deletion cleanup

Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-09-17 06:11:37 +02:00
committed by GitHub
co-authored by TiviPlus
parent 74f36957dd
commit 303f712ae1
5 changed files with 33 additions and 37 deletions
+4 -7
View File
@@ -25,16 +25,13 @@
update_icon()
if(A == brain)
brain = null
. = ..()
return ..()
/obj/structure/ai_core/Destroy()
if(circuit)
qdel(circuit)
circuit = null
if(brain)
qdel(brain)
brain = null
QDEL_NULL(circuit)
QDEL_NULL(brain)
QDEL_NULL(laws)
return ..()
/obj/structure/ai_core/deactivated