diff options
author | Michael Alexsander <michaelalexsander@protonmail.com> | 2021-08-15 19:35:23 -0300 |
---|---|---|
committer | Michael Alexsander <michaelalexsander@protonmail.com> | 2021-08-18 13:12:14 -0300 |
commit | 9819be756297c69e0c6b314bef6d45b0bc5227c1 (patch) | |
tree | 04d7bd8fe6f9c650d8eb02cb611aba5414b60cf5 /scene | |
parent | 01675eb75a6bed4820383fd0d200bf5aad71d612 (diff) |
Minor tweaks/fixes for the Command Palette
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/shortcut.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/shortcut.cpp b/scene/gui/shortcut.cpp index c0aac6d91a..d0cb08724e 100644 --- a/scene/gui/shortcut.cpp +++ b/scene/gui/shortcut.cpp @@ -32,7 +32,7 @@ #include "core/os/keyboard.h" void Shortcut::set_event(const Ref<InputEvent> &p_event) { - ERR_FAIL_COND(Object::cast_to<InputEventShortcut>(*p_event)); + ERR_FAIL_COND_MSG(Object::cast_to<InputEventShortcut>(*p_event), "Cannot set a shortcut event to an instance of InputEventShortcut."); event = p_event; emit_changed(); } |