Make hud resize more robust for empty lists (manequins)

This commit is contained in:
Arokha Sieyes
2018-03-19 15:12:35 -04:00
parent deac68004d
commit 3350d347e6

View File

@@ -82,7 +82,8 @@ var/const/RESIZE_A_SMALLTINY = (RESIZE_SMALL + RESIZE_TINY) / 2
size_multiplier = new_size //Change size_multiplier so that other items can interact with them
/mob/living/carbon/human/resize(var/new_size, var/animate = TRUE)
if(..()) return 1
. = ..()
if(LAZYLEN(hud_list) && has_huds)
var/new_y_offset = 32 * (size_multiplier - 1)
for(var/index = 1 to hud_list.len)
var/image/HI = grab_hud(index)