diff --git a/game/base-clothing/widgets.twee b/game/base-clothing/widgets.twee index a79c71aa5cea37bf0916767bdc0b929abb1820bf..2ff27069516919db64f0847f9a553fa96395d00f 100644 --- a/game/base-clothing/widgets.twee +++ b/game/base-clothing/widgets.twee @@ -656,13 +656,14 @@ <<elseif $money gte $_cost>> <<generalSend $_return $_slot $_setupItem.index $_item.colour $_item.accessory_colour>> <<if $_item.one_piece is "split">> - <<set $_return[$_slot].last().one_piece to "split">> + <<set $_selectedWardrobe to selectWardrobe($_return)>> + <<set $_selectedWardrobe[$_slot].last().one_piece to "split">> <<if $_item.outfitPrimary>> - <<for $_rangeSlot, $_value range $_return[$_slot].last().outfitPrimary>> - <<set $_return[$_slot].last().outfitPrimary[$_rangeSlot] to "split">> + <<for $_rangeSlot, $_value range $_selectedWardrobe[$_slot].last().outfitPrimary>> + <<set $_selectedWardrobe[$_slot].last().outfitPrimary[$_rangeSlot] to "split">> <</for>> - <<elseif $_outfitSecondary>> - <<set $_return[$_slot].last().outfitSecondary[1] to "split">> + <<elseif $_item.outfitSecondary>> + <<set $_selectedWardrobe[$_slot].last().outfitSecondary[1] to "split">> <</if>> <</if>> <<set $money -= $_cost>>