From b87bd8900d762811c8f7abe03a793cc13622563f Mon Sep 17 00:00:00 2001 From: Sierra Helper <125094432+SierraHelper@users.noreply.github.com> Date: Fri, 20 Dec 2024 15:57:35 +0300 Subject: [PATCH] [MIRROR] Fix cancelled allergy inputs breaking allergies (#2961) Co-authored-by: SierraKomodo <11140088+SierraKomodo@users.noreply.github.com> Co-authored-by: Lexanx <61974560+Lexanx@users.noreply.github.com> --- code/modules/client/preference_setup/general/02_body.dm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/code/modules/client/preference_setup/general/02_body.dm b/code/modules/client/preference_setup/general/02_body.dm index c14f7d845c9ce..340ef7d9b00da 100644 --- a/code/modules/client/preference_setup/general/02_body.dm +++ b/code/modules/client/preference_setup/general/02_body.dm @@ -701,15 +701,12 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O for (var/severity in possible_levels) LAZYSET(letterized_levels, LetterizeSeverity(severity), severity) var/letterized_input = input(user, "Select the trait's level to apply.", "Select Level") as null | anything in letterized_levels + if (!letterized_input) + return selected_level = letterized_levels[letterized_input] else selected_level = possible_levels[1] - //[SIERRA-ADD] - pr34500 - Prevents runtimes, because as of now it can be null - if(!selected_level) - return - //[/SIERRA-ADD] - var/additional_data if (length(selected.metaoptions)) var/list/sanitized_metaoptions