Skip to content

Commit

Permalink
Merge pull request #47592 from jmb462/fix-VisualScriptFunctionState-c…
Browse files Browse the repository at this point in the history
…onnect-to-null-signal-crash

Fix VisualScriptFunctionState connect to null object crash (Fix #47572)
  • Loading branch information
akien-mga authored Apr 5, 2021
2 parents de3b3e1 + 3a0a71f commit 33b8f14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/visual_script/visual_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 33b8f14

Please sign in to comment.