summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2024-04-03 08:56:20 -0500
committerGitHub <noreply@github.com>2024-04-03 08:56:20 -0500
commitb02124595f46ec9bf35d6b0636c9bf16750fbfb6 (patch)
tree4d0ac3ec1bb720e4ce34a37d64df92c75d2a80ec /include/godot_cpp
parent7d4a24caab340a99a77a7a5da4d5dc96830b72f4 (diff)
parentd055b575fb325b8ce72345dc924a52b22d9e2255 (diff)
downloadredot-cpp-b02124595f46ec9bf35d6b0636c9bf16750fbfb6.tar.gz
Merge pull request #1422 from AThousandShips/utility_fix
Fix incorrect utility call signature
Diffstat (limited to 'include/godot_cpp')
-rw-r--r--include/godot_cpp/core/engine_ptrcall.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/godot_cpp/core/engine_ptrcall.hpp b/include/godot_cpp/core/engine_ptrcall.hpp
index 482dfab..555806b 100644
--- a/include/godot_cpp/core/engine_ptrcall.hpp
+++ b/include/godot_cpp/core/engine_ptrcall.hpp
@@ -77,7 +77,7 @@ R _call_utility_ret(GDExtensionPtrUtilityFunction func, const Args &...args) {
}
template <typename... Args>
-Object *_call_utility_ret_obj(const GDExtensionPtrUtilityFunction func, void *instance, const Args &...args) {
+Object *_call_utility_ret_obj(const GDExtensionPtrUtilityFunction func, const Args &...args) {
GodotObject *ret = nullptr;
std::array<GDExtensionConstTypePtr, sizeof...(Args)> mb_args = { { (GDExtensionConstTypePtr)args... } };
func(&ret, mb_args.data(), mb_args.size());