From 077d62c5c2ec12bd5115d309eeb4fbb714bd0838 Mon Sep 17 00:00:00 2001 From: D3athrow Date: Tue, 19 Dec 2023 17:14:40 -0600 Subject: [PATCH] Fix pressing the cancel button when changing a variable's type nulling out the variable instead of actually canceling the action. --- code/modules/admin/verbs/modifyvariables.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/verbs/modifyvariables.dm b/code/modules/admin/verbs/modifyvariables.dm index 1fafee04d19..79d486b5b77 100644 --- a/code/modules/admin/verbs/modifyvariables.dm +++ b/code/modules/admin/verbs/modifyvariables.dm @@ -146,7 +146,7 @@ var/list/forbidden_varedit_object_types = list( if(!new_variable_type) new_variable_type = input("What kind of variable?","Variable Type") as null|anything in choices - var/selected_type = choices[new_variable_type] + var/selected_type = !new_variable_type ? V_CANCEL : choices[new_variable_type] var/window_title = "Varedit [edited_datum]" switch(selected_type)