Skip to content

miss argument#1421

Closed
GraCoder wants to merge 1 commit into
godotengine:masterfrom
GraCoder:t
Closed

miss argument#1421
GraCoder wants to merge 1 commit into
godotengine:masterfrom
GraCoder:t

Conversation

@GraCoder

Copy link
Copy Markdown

UtilityFunctions::instance_from_id crash

@GraCoder
GraCoder requested a review from a team as a code owner March 27, 2024 03:26
@AThousandShips

AThousandShips commented Mar 27, 2024

Copy link
Copy Markdown
Member

I think the solution is instead to change this

function_call += "internal::_call_utility_ret_obj(_gde_function"

To:

function_call += "internal::_call_utility_ret_obj(_gde_function, nullptr"

Like this:

method_call += f"return Ref<{return_type}>::_gde_internal_constructor(internal::_call_native_mb_ret_obj<{return_type}>(_gde_method_bind, nullptr"

@AThousandShips

Copy link
Copy Markdown
Member

Made a fix for this by removing the argument from the method entirely as it's never used and isn't depended on, will open a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants