From fbfa12dd762bbf65bf26b574a13e5fffa57879a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 25 Mar 2022 15:22:53 +0100 Subject: [PATCH] Fixup enum compare after #53734 --- editor/action_map_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/action_map_editor.cpp b/editor/action_map_editor.cpp index c48b622670a..96931efd3b3 100644 --- a/editor/action_map_editor.cpp +++ b/editor/action_map_editor.cpp @@ -1103,7 +1103,7 @@ void ActionMapEditor::update_action_list(const Vector &p_action_info // First Column - Icon Ref k = event; if (k.is_valid()) { - if (k->get_physical_keycode() == 0) { + if (k->get_physical_keycode() == Key::NONE) { event_item->set_icon(0, action_tree->get_theme_icon(SNAME("Keyboard"), SNAME("EditorIcons"))); } else { event_item->set_icon(0, action_tree->get_theme_icon(SNAME("KeyboardPhysical"), SNAME("EditorIcons")));