Bläddra i källkod

Fix incorrect utility call signature

(cherry picked from commit d055b575fb325b8ce72345dc924a52b22d9e2255)
A Thousand Ships 1 år sedan
förälder
incheckning
c8fa4c0fd0
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      include/godot_cpp/core/engine_ptrcall.hpp

+ 1 - 1
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());