Fix pressing the cancel button when changing a variable's type nulling out the variable instead of actually canceling the action.

This commit is contained in:
D3athrow
2023-12-19 17:14:40 -06:00
parent 84a27e3fb3
commit 077d62c5c2

View File

@@ -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)