diff --git a/code/game/machinery/computer/ai_core.dm b/code/game/machinery/computer/ai_core.dm index 26e3f776053..6421fd284de 100644 --- a/code/game/machinery/computer/ai_core.dm +++ b/code/game/machinery/computer/ai_core.dm @@ -178,6 +178,8 @@ SSticker.mode.remove_revolutionary(brain.brainmob.mind, 1) var/mob/living/silicon/ai/A = new /mob/living/silicon/ai(loc, laws, brain) + // Stop holding onto the laws so we don't qdel them and make the AI randomly lose its laws when GC gives up and hard deletes them. + laws = null if(A) //if there's no brain, the mob is deleted and a structure/AIcore is created A.rename_self("AI", 1) SSblackbox.record_feedback("amount", "ais_created", 1)