diff options
author | jmb462 <jmb462@gmail.com> | 2021-04-03 12:13:26 +0200 |
---|---|---|
committer | jmb462 <jmb462@gmail.com> | 2021-04-03 12:13:26 +0200 |
commit | 3a0a71fa6a1dfd990816cba35382652af41fef27 (patch) | |
tree | fbffc500c09095a7963b2d3d19f1707b2685aca4 /modules | |
parent | ed2f51b15fee22a35d2a975fd77a70fc291bd8de (diff) |
Fix VisualScriptFunctionState connect to null object crash
Diffstat (limited to 'modules')
-rw-r--r-- | modules/visual_script/visual_script.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/visual_script/visual_script.cpp b/modules/visual_script/visual_script.cpp index e91ae46a57..dc94c15492 100644 --- a/modules/visual_script/visual_script.cpp +++ b/modules/visual_script/visual_script.cpp @@ -2252,6 +2252,7 @@ Variant VisualScriptFunctionState::_signal_callback(const Variant **p_args, int } void VisualScriptFunctionState::connect_to_signal(Object *p_obj, const String &p_signal, Array p_binds) { + ERR_FAIL_NULL(p_obj); Vector<Variant> binds; for (int i = 0; i < p_binds.size(); i++) { binds.push_back(p_binds[i]); |