Skip to content

Commit

Permalink
[MIRROR] Fix cancelled allergy inputs breaking allergies (#2961)
Browse files Browse the repository at this point in the history
Co-authored-by: SierraKomodo <[email protected]>
Co-authored-by: Lexanx <[email protected]>
  • Loading branch information
3 people authored Dec 20, 2024
1 parent 8534003 commit b87bd89
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions code/modules/client/preference_setup/general/02_body.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b87bd89

Please sign in to comment.