You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix Callable::bind usage in connections_dialog.h and packed_scene.cpp
* Callable::bind takes an array of pointers to Variant * Fixes #57057
This commit is contained in:
@@ -362,8 +362,11 @@ Node *SceneState::instantiate(GenEditState p_edit_state) const {
|
||||
}
|
||||
}
|
||||
|
||||
const Variant *args = binds.ptr();
|
||||
callable = callable.bind(&args, binds.size());
|
||||
const Variant **argptrs = (const Variant **)alloca(sizeof(Variant *) * binds.size());
|
||||
for (int j = 0; j < binds.size(); j++) {
|
||||
argptrs[j] = &binds[j];
|
||||
}
|
||||
callable = callable.bind(argptrs, binds.size());
|
||||
}
|
||||
|
||||
cfrom->connect(snames[c.signal], callable, varray(), CONNECT_PERSIST | c.flags);
|
||||
|
||||
Reference in New Issue
Block a user