You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix VisualScript crash with null object
This commit is contained in:
@@ -2232,6 +2232,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) {
|
void VisualScriptFunctionState::connect_to_signal(Object *p_obj, const String &p_signal, Array p_binds) {
|
||||||
|
ERR_FAIL_NULL(p_obj);
|
||||||
Vector<Variant> binds;
|
Vector<Variant> binds;
|
||||||
for (int i = 0; i < p_binds.size(); i++) {
|
for (int i = 0; i < p_binds.size(); i++) {
|
||||||
binds.push_back(p_binds[i]);
|
binds.push_back(p_binds[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user