diff options
author | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-04-05 08:52:21 +0200 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-04-05 08:52:21 +0200 |
commit | 504bc5cc6719db3bcafa5f1262b95fa2a58ec0a1 (patch) | |
tree | 4dc94056680fd757e2b99197c2c3518990755202 /modules | |
parent | a864a703ee27065795c6297aaeb72ed753d0f279 (diff) |
Fix crashes in *_input functions
Diffstat (limited to 'modules')
-rw-r--r-- | modules/visual_script/visual_script_editor.cpp | 2 |
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; |