diff options
author | Juan Linietsky <reduzio@gmail.com> | 2021-09-07 11:59:46 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-07 11:59:46 -0300 |
commit | 93aa158b5e1b3b11c3482834504e791c3898baf0 (patch) | |
tree | dd0de472b6a31e4878a765025990d08977619320 /core/variant | |
parent | 88c3e3180a52b2460429dfc031555392394fd97d (diff) | |
parent | 4bd7700e89f4476a3b2c76e7bed4263a111b3c09 (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.cpp | 3 |
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) { |