Skip to content

Commit

Permalink
Fix typo in static method binding generator
Browse files Browse the repository at this point in the history
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
  • Loading branch information
akien-mga and bruvzg committed Jul 8, 2022
1 parent 666a378 commit bffedfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binding_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ def generate_engine_class_source(class_api, used_classes, fully_used_classes, us
method_call += f"return internal::_call_native_mb_ret<{get_gdnative_type(correct_type(return_type, meta_type))}>(___method_bind, _owner"
elif is_refcounted(return_type):
if method["is_static"]:
method_call += f"return Ref<{return_type}>::___internal_constructor(internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, _nullptr"
method_call += f"return Ref<{return_type}>::___internal_constructor(internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, nullptr"
else:
method_call += f"return Ref<{return_type}>::___internal_constructor(internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, _owner"
is_ref = True
Expand Down

0 comments on commit bffedfe

Please sign in to comment.