Skip to content

Commit

Permalink
Merge pull request #1422 from AThousandShips/utility_fix
Browse files Browse the repository at this point in the history
Fix incorrect utility call signature
  • Loading branch information
dsnopek authored Apr 3, 2024
2 parents 7d4a24c + d055b57 commit b021245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/godot_cpp/core/engine_ptrcall.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit b021245

Please sign in to comment.