summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2021-09-07 11:59:46 -0300
committerGitHub <noreply@github.com>2021-09-07 11:59:46 -0300
commit93aa158b5e1b3b11c3482834504e791c3898baf0 (patch)
treedd0de472b6a31e4878a765025990d08977619320 /core/variant
parent88c3e3180a52b2460429dfc031555392394fd97d (diff)
parent4bd7700e89f4476a3b2c76e7bed4263a111b3c09 (diff)
Merge pull request #52277 from groud/implement_array_property_hint
Implement properties arrays in the Inspector.
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/callable_bind.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/variant/callable_bind.cpp b/core/variant/callable_bind.cpp
index 10446a5ec1..56eda6e703 100644
--- a/core/variant/callable_bind.cpp
+++ b/core/variant/callable_bind.cpp
@@ -169,7 +169,8 @@ CallableCustomUnbind::~CallableCustomUnbind() {
}
Callable callable_bind(const Callable &p_callable, const Variant &p_arg1) {
- return p_callable.bind((const Variant **)&p_arg1, 1);
+ const Variant *args[1] = { &p_arg1 };
+ return p_callable.bind(args, 1);
}
Callable callable_bind(const Callable &p_callable, const Variant &p_arg1, const Variant &p_arg2) {