From ee65f070bf800322fb1406ca4732db1ce511c10e Mon Sep 17 00:00:00 2001 From: deathride58 Date: Thu, 5 Mar 2020 23:22:56 -0500 Subject: [PATCH] fixes runtime with body markings --- code/modules/surgery/bodyparts/bodyparts.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/surgery/bodyparts/bodyparts.dm b/code/modules/surgery/bodyparts/bodyparts.dm index 085e7e8740..921af3e527 100644 --- a/code/modules/surgery/bodyparts/bodyparts.dm +++ b/code/modules/surgery/bodyparts/bodyparts.dm @@ -327,7 +327,7 @@ color_src = FALSE var/datum/species/S = H.dna.species - base_bp_icon = S.icon_limbs || DEFAULT_BODYPART_ICON + base_bp_icon = S?.icon_limbs || DEFAULT_BODYPART_ICON species_id = S.limbs_id species_flags_list = H.dna.species.species_traits @@ -375,8 +375,8 @@ if(Smark) body_markings_icon = Smark.icon if(H.dna.features["mam_body_markings"] != "None") - body_markings = Smark.icon_state || lowertext(H.dna.features["mam_body_markings"]) - aux_marking = Smark.icon_state || lowertext(H.dna.features["mam_body_markings"]) + body_markings = Smark?.icon_state || lowertext(H.dna.features["mam_body_markings"]) + aux_marking = Smark?.icon_state || lowertext(H.dna.features["mam_body_markings"]) else body_markings = "plain" aux_marking = "plain"