summaryrefslogtreecommitdiff
path: root/modules/visual_script/visual_script_editor.cpp
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal@protonmail.com>2021-04-05 08:52:21 +0200
committerRafał Mikrut <mikrutrafal@protonmail.com>2021-04-05 08:52:21 +0200
commit504bc5cc6719db3bcafa5f1262b95fa2a58ec0a1 (patch)
tree4dc94056680fd757e2b99197c2c3518990755202 /modules/visual_script/visual_script_editor.cpp
parenta864a703ee27065795c6297aaeb72ed753d0f279 (diff)
Fix crashes in *_input functions
Diffstat (limited to 'modules/visual_script/visual_script_editor.cpp')
-rw-r--r--modules/visual_script/visual_script_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp
index d520837d43..4cc238e69a 100644
--- a/modules/visual_script/visual_script_editor.cpp
+++ b/modules/visual_script/visual_script_editor.cpp
@@ -1826,6 +1826,8 @@ void VisualScriptEditor::_generic_search(String p_base_type, Vector2 pos, bool n
}
void VisualScriptEditor::_input(const Ref<InputEvent> &p_event) {
+ ERR_FAIL_COND(p_event.is_null());
+
// GUI input for VS Editor Plugin
Ref<InputEventMouseButton> key = p_event;