From b21931c4a35b72ae948784dd90fed76f4364ae80 Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Sun, 9 Oct 2022 23:21:32 +0200 Subject: Type `GDNativePropertyInfo.type` field as `GDNativeVariantType` --- include/godot_cpp/classes/wrapped.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/godot_cpp/classes/wrapped.hpp') diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp index 5bd032a..ce1bc51 100644 --- a/include/godot_cpp/classes/wrapped.hpp +++ b/include/godot_cpp/classes/wrapped.hpp @@ -219,7 +219,7 @@ public: cls->plist = reinterpret_cast(memalloc(sizeof(GDNativePropertyInfo) * list.size())); \ cls->plist_size = 0; \ for (const ::godot::PropertyInfo &E : list) { \ - cls->plist[cls->plist_size].type = E.type; \ + cls->plist[cls->plist_size].type = static_cast(E.type); \ cls->plist[cls->plist_size].name = _alloc_and_copy_cstr(E.name.utf8().get_data()); \ cls->plist[cls->plist_size].hint = E.hint; \ cls->plist[cls->plist_size].hint_string = _alloc_and_copy_cstr(E.hint_string.utf8().get_data()); \ -- cgit v1.2.3