From bfffcbb08b07907dc440c6ec76ad75ccabe157a2 Mon Sep 17 00:00:00 2001 From: JimKil3 <47290811+JimKil3@users.noreply.github.com> Date: Wed, 28 Feb 2024 10:04:39 -0600 Subject: [PATCH] the change --- code/modules/client/preferences.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index b52052cd15ec..ebf32c163d89 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -1240,7 +1240,11 @@ GLOBAL_LIST_EMPTY(preferences_datums) if(!SSmapping) return - var/datum/map_template/shuttle/ship = SSmapping.ship_purchase_list[tgui_input_list(user, "Please select which ship to preview outfits for.", "Outfit selection", SSmapping.ship_purchase_list)] + var/ship_selection = tgui_input_list(user, "Please select which ship to preview outfits for.", "Outfit selection", (list("None") + SSmapping.ship_purchase_list)) + if(ship_selection == "None") + selected_outfit = new /datum/outfit //The base type outfit is nude + + var/datum/map_template/shuttle/ship = SSmapping.ship_purchase_list[ship_selection] if(!ship) return