summaryrefslogtreecommitdiff
path: root/scene/gui/shortcut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/shortcut.cpp')
-rw-r--r--scene/gui/shortcut.cpp2
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();
}