From 33aed2aa5087656be3833be3c6799c2381cdcdcb Mon Sep 17 00:00:00 2001 From: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Date: Sun, 25 Aug 2024 02:53:44 -0500 Subject: [PATCH] Belt contents copypasta fix (#85989) ## About The Pull Request #85945 and #85319 --- code/datums/outfit.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/datums/outfit.dm b/code/datums/outfit.dm index eea7c7c26d0..542d0d65046 100644 --- a/code/datums/outfit.dm +++ b/code/datums/outfit.dm @@ -376,8 +376,11 @@ for(var/i in 1 to num_to_load) preload += type_to_load //Load in belt gear and shit - for(var/datum/type_to_load in belt_contents) - for(var/i in 1 to belt_contents[type_to_load]) + for(var/type_to_load in belt_contents) + var/num_to_load = belt_contents[type_to_load] + if(!isnum(num_to_load)) + num_to_load = 1 + for(var/i in 1 to num_to_load) preload += type_to_load preload += belt preload += ears