Skip to content

Commit

Permalink
Merge pull request #83107 from dsnopek/validated-method-vararg-message
Browse files Browse the repository at this point in the history
GDExtension: Fix incorrect error message about vararg methods
  • Loading branch information
akien-mga committed Oct 10, 2023
2 parents b36e6dc + 87cb0bf commit b40d90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/extension/gdextension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class GDExtensionMethodBind : public MethodBind {
#ifdef TOOLS_ENABLED
ERR_FAIL_COND_MSG(!valid, vformat("Cannot call invalid GDExtension method bind '%s'. It's probably cached - you may need to restart Godot.", name));
#endif
ERR_FAIL_COND_MSG(vararg, "Validated methods don't have ptrcall support. This is most likely an engine bug.");
ERR_FAIL_COND_MSG(vararg, "Vararg methods don't have validated call support. This is most likely an engine bug.");
GDExtensionClassInstancePtr extension_instance = is_static() ? nullptr : p_object->_get_extension_instance();

if (validated_call_func) {
Expand Down

0 comments on commit b40d90d

Please sign in to comment.