diff --git a/modules/gdnative/nativescript/api_generator.cpp b/modules/gdnative/nativescript/api_generator.cpp index 3c1e6257473..9f83095f000 100644 --- a/modules/gdnative/nativescript/api_generator.cpp +++ b/modules/gdnative/nativescript/api_generator.cpp @@ -361,7 +361,7 @@ List generate_c_api_classes() { arg_type = Variant::get_type_name(arg_info.type); } } else { - arg_type = get_type_name(arg_info); + arg_type = Variant::get_type_name(arg_info.type); } method_api.argument_names.push_back(arg_name);