mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user