Skip to content

Commit

Permalink
runtime fix
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Sep 1, 2023
1 parent 1b80bb7 commit 1a742a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/modules/organs/limbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -685,14 +685,14 @@ This function completely restores a damaged organ to perfect condition.
/obj/limb/proc/update_limb()
SHOULD_CALL_PARENT(TRUE)

var/datum/ethnicity/owner_ethnicity = GLOB.ethnicities_list[owner.ethnicity]
var/datum/ethnicity/owner_ethnicity = GLOB.ethnicities_list[owner?.ethnicity]

if(owner_ethnicity)
ethnicity = owner_ethnicity.icon_name
else
ethnicity = "western"

var/datum/body_type/owner_body_type = GLOB.body_types_list[owner.body_type]
var/datum/body_type/owner_body_type = GLOB.body_types_list[owner?.body_type]

if(owner_body_type)
body_type = owner_body_type.icon_name
Expand All @@ -703,8 +703,8 @@ This function completely restores a damaged organ to perfect condition.
ethnicity = owner.ethnicity
body_type = owner.body_type

species = owner.species
limb_gender = owner.gender
species = owner?.species ? owner.species : GLOB.all_species[SPECIES_HUMAN]
limb_gender = owner?.gender ? owner.gender : FEMALE

/// generates a list of overlays that should be applied to the owner
/obj/limb/proc/get_limb_icon()
Expand Down

0 comments on commit 1a742a8

Please sign in to comment.