diff --git a/gdnative/variant.cpp b/gdnative/variant.cpp index 6235435..734c334 100644 --- a/gdnative/variant.cpp +++ b/gdnative/variant.cpp @@ -149,7 +149,7 @@ void GDAPI pandemonium_variant_new_vector2(pandemonium_variant *r_dest, const pa memnew_placement_custom(dest, Variant, Variant(*v2)); } -void GDAPI pandemonium_variant_new_vector2i(pandemonium_variant *r_dest, const pandemonium_vector2 *p_v2i) { +void GDAPI pandemonium_variant_new_vector2i(pandemonium_variant *r_dest, const pandemonium_vector2i *p_v2i) { Variant *dest = (Variant *)r_dest; Vector2i *v2i = (Vector2i *)p_v2i; memnew_placement_custom(dest, Variant, Variant(*v2i)); diff --git a/gdnative_api.json b/gdnative_api.json index 795ab42..81dee29 100644 --- a/gdnative_api.json +++ b/gdnative_api.json @@ -8094,7 +8094,7 @@ "return_type": "void", "arguments": [ ["pandemonium_variant *", "r_dest"], - ["const pandemonium_vector2 *", "p_v2i"] + ["const pandemonium_vector2i *", "p_v2i"] ] }, { diff --git a/include/gdn/variant.h b/include/gdn/variant.h index 3d342cd..8683aaf 100644 --- a/include/gdn/variant.h +++ b/include/gdn/variant.h @@ -318,7 +318,7 @@ void GDAPI pandemonium_variant_new_real(pandemonium_variant *r_dest, const doubl void GDAPI pandemonium_variant_new_string(pandemonium_variant *r_dest, const pandemonium_string *p_s); void GDAPI pandemonium_variant_new_string_name(pandemonium_variant *r_dest, const pandemonium_string_name *p_s); void GDAPI pandemonium_variant_new_vector2(pandemonium_variant *r_dest, const pandemonium_vector2 *p_v2); -void GDAPI pandemonium_variant_new_vector2i(pandemonium_variant *r_dest, const pandemonium_vector2 *p_v2i); +void GDAPI pandemonium_variant_new_vector2i(pandemonium_variant *r_dest, const pandemonium_vector2i *p_v2i); void GDAPI pandemonium_variant_new_rect2(pandemonium_variant *r_dest, const pandemonium_rect2 *p_rect2); void GDAPI pandemonium_variant_new_rect2i(pandemonium_variant *r_dest, const pandemonium_rect2i *p_rect2i); void GDAPI pandemonium_variant_new_vector3(pandemonium_variant *r_dest, const pandemonium_vector3 *p_v3);