From fa2d3a7bfda72509d4dbcb0856fd0362cad506c2 Mon Sep 17 00:00:00 2001 From: Drulikar Date: Sun, 9 Jun 2024 07:11:07 -0700 Subject: [PATCH] Fix update_icons --- code/modules/mob/living/carbon/human/update_icons.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm index 7004601db7c8..dfb903368503 100644 --- a/code/modules/mob/living/carbon/human/update_icons.dm +++ b/code/modules/mob/living/carbon/human/update_icons.dm @@ -346,6 +346,8 @@ Applied by gun suicide and high impact bullet executions, removed by rejuvenate, wear_id.screen_loc = hud_used.ui_datum.hud_slot_offset(wear_id, hud_used.ui_datum.ui_id) var/obj/item/card/id/card = get_idcard() + if(!card) + return if(!card.pinned_on_uniform || (w_uniform && w_uniform.displays_id && !(w_uniform.flags_jumpsuit & UNIFORM_JACKET_REMOVED))) var/image/id_overlay = card.get_mob_overlay(src, WEAR_ID) id_overlay.layer = -ID_LAYER