mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Fix VisualScriptFunctionState connect to null object crash
This commit is contained in:
parent
ed2f51b15f
commit
3a0a71fa6a
1 changed files with 1 additions and 0 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue