From c03aea1ebb63c41a88d8018455ebcebe88dbb734 Mon Sep 17 00:00:00 2001 From: FartMaster69420 <78667902+FartMaster69420@users.noreply.github.com> Date: Tue, 3 May 2022 20:38:04 -0400 Subject: [PATCH] Apparently an empty list wasn't better But this does work. --- code/game/dna/dna_modifier.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/game/dna/dna_modifier.dm b/code/game/dna/dna_modifier.dm index d0dcfcc7fd1..58338edf220 100644 --- a/code/game/dna/dna_modifier.dm +++ b/code/game/dna/dna_modifier.dm @@ -24,7 +24,7 @@ var/languages=null var/list/flavor=null var/gender = null - var/list/body_descriptors = list() // An empty list works better than null. + var/list/body_descriptors = null // Guess we'll keep null. var/list/genetic_modifiers = list() // Modifiers with the MODIFIER_GENETIC flag are saved. Note that only the type is saved, not an instance. /datum/dna2/record/proc/GetData() @@ -54,7 +54,8 @@ newrecord.implant = implant newrecord.flavor = flavor newrecord.gender = gender - newrecord.body_descriptors = body_descriptors.Copy() + if(body_descriptors) + newrecord.body_descriptors = body_descriptors.Copy() newrecord.genetic_modifiers = genetic_modifiers.Copy() return newrecord