From 738ebac765c3b2eafa28f04b73e098e61845b345 Mon Sep 17 00:00:00 2001 From: VampyrBytes Date: Mon, 13 Feb 2017 15:03:20 +0000 Subject: [PATCH] The God Emperor lives on! Fixes #6404 There were 2 issues here. Firstly I'm guessing that UI has grown in length since this disk was made... the UI on the disk only had a length of 24 instead of 32 which was leading to a list out of bounds runtime. Fixed with a loop adding 0x000 to the end to prevent this happening again if the UI length changes again Secondly, even though it's a UI&UE disk, the dna record on it still needed SE for it to work - Clean SE now added to it --- code/game/machinery/cloning.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm index 8ba7558d69b..af452dbdbcd 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -124,6 +124,9 @@ buf.dna.unique_enzymes = md5(buf.dna.real_name) buf.dna.UI=list(0x066,0x000,0x033,0x000,0x000,0x000,0xAF0,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x033,0x066,0x0FF,0x4DB,0x002,0x690,0x000,0x000) //buf.dna.UI=list(0x0C8,0x0C8,0x0C8,0x0C8,0x0C8,0x0C8,0x000,0x000,0x000,0x000,0x161,0xFBD,0xDEF) // Farmer Jeff + for(var/i in buf.dna.UI.len to DNA_UI_LENGTH) + buf.dna.UI += 0x000 + buf.dna.ResetSE() buf.dna.UpdateUI() /obj/item/weapon/disk/data/monkey