Fixed shadowed variables crashes/warnings occurring in Godot 3.2.2-rc1

This commit is contained in:
OverloadedOrama 2020-06-13 15:25:12 +03:00
parent e6aea97f1b
commit 8064d7b459
5 changed files with 15 additions and 15 deletions

View file

@ -78,8 +78,8 @@ func _on_PresetOptionButton_item_selected(id : int) -> void:
func apply_shortcuts_preset(preset) -> void:
for action in preset:
var old_input_event : InputEventKey = InputMap.get_action_list(action)[0]
set_action_shortcut(action, old_input_event, preset[action])
var _old_input_event : InputEventKey = InputMap.get_action_list(action)[0]
set_action_shortcut(action, _old_input_event, preset[action])
get_node("Shortcuts/" + action).text = OS.get_scancode_string(preset[action].get_scancode_with_modifiers())