From 979a120411bcefa1a4b09fc401060c2bb3b158d3 Mon Sep 17 00:00:00 2001 From: Loganbacca Date: Sat, 2 Jan 2016 11:17:32 +1300 Subject: [PATCH] Helmet overlay runtime fix --- code/modules/clothing/clothing.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 1196a0fa9d9..ea8fd55b80b 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -351,7 +351,7 @@ BLIND // can't see anything var/cache_key = "[light_overlay][H ? "_[H.species.get_bodytype()]" : ""]" if(!light_overlay_cache[cache_key]) var/use_icon = 'icons/mob/light_overlays.dmi' - if(H && sprite_sheets[H.species.get_bodytype()]) + if(H && sprite_sheets && sprite_sheets[H.species.get_bodytype()]) use_icon = sprite_sheets[H.species.get_bodytype()] light_overlay_cache[cache_key] = image("icon" = use_icon, "icon_state" = "[light_overlay]")