From 6f826e9d79b1f1cc11f3cd37db7f9cad38abb03f Mon Sep 17 00:00:00 2001 From: igorsaux Date: Thu, 4 Jul 2024 11:27:48 +0300 Subject: [PATCH] fix(runtime): custom sprites runtime --- code/modules/mob/living/silicon/custom_sprites.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/silicon/custom_sprites.dm b/code/modules/mob/living/silicon/custom_sprites.dm index 6e7c719abfa..3a0a9e1333a 100644 --- a/code/modules/mob/living/silicon/custom_sprites.dm +++ b/code/modules/mob/living/silicon/custom_sprites.dm @@ -16,7 +16,7 @@ GLOBAL_LIST_EMPTY(ai_custom_icons) /hook/startup/proc/load_silicon_custom_sprites() #ifdef CUSTOM_ITEM_AI_HOLO - for(var/datum/custom_sprite/sprite in config.custom.sprites["ai_holo"]) + for(var/datum/custom_sprite/sprite in config.custom.sprites?["ai_holo"]) var/ckey = sprite.ckey var/custom_icon_state = sprite.sprite @@ -29,7 +29,7 @@ GLOBAL_LIST_EMPTY(ai_custom_icons) #ifdef CUSTOM_ITEM_ROBOTS var/list/custom_robot_icon_states = icon_states(CUSTOM_ITEM_ROBOTS) - for(var/datum/custom_sprite/sprite in config.custom.sprites["robot"]) + for(var/datum/custom_sprite/sprite in config.custom.sprites?["robot"]) var/ckey = sprite.ckey var/custom_icon_state = sprite.sprite var/footstep_sound = sprite.footstep_sound @@ -47,7 +47,7 @@ GLOBAL_LIST_EMPTY(ai_custom_icons) var/list/custom_ai_icon_states = icon_states(CUSTOM_ITEM_AI) var/custom_index = 0 - for(var/datum/custom_sprite/sprite in config.custom.sprites["ai_core"]) + for(var/datum/custom_sprite/sprite in config.custom.sprites?["ai_core"]) var/ckey = sprite.ckey var/custom_icon_state = sprite.sprite