summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-03-27 13:19:54 +0100
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-04-02 21:44:40 +0200
commitd055b575fb325b8ce72345dc924a52b22d9e2255 (patch)
tree4d0ac3ec1bb720e4ce34a37d64df92c75d2a80ec /include/godot_cpp
parent7d4a24caab340a99a77a7a5da4d5dc96830b72f4 (diff)
downloadredot-cpp-d055b575fb325b8ce72345dc924a52b22d9e2255.tar.gz
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());