mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 13:38:41 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user