summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/classes/wrapped.hpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-15 21:10:13 +0200
committerGitHub <noreply@github.com>2022-09-15 21:10:13 +0200
commitf24cc8be0379c0764c8baca2d6da67d7e9096937 (patch)
tree6bc129c46ceac096871c9ea6fca5190d07148e5d /include/godot_cpp/classes/wrapped.hpp
parent16606cde39cb13557e094667b84740c34972e39e (diff)
parent36273baa7e6210d9e353144442d2699659eb1684 (diff)
downloadredot-cpp-f24cc8be0379c0764c8baca2d6da67d7e9096937.tar.gz
Merge pull request #826 from bruvzg/string_info
Diffstat (limited to 'include/godot_cpp/classes/wrapped.hpp')
-rw-r--r--include/godot_cpp/classes/wrapped.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp
index cfbf6c0..7881384 100644
--- a/include/godot_cpp/classes/wrapped.hpp
+++ b/include/godot_cpp/classes/wrapped.hpp
@@ -220,10 +220,10 @@ public:
cls->plist_size = 0; \
for (const ::godot::PropertyInfo &E : list) { \
cls->plist[cls->plist_size].type = E.type; \
- cls->plist[cls->plist_size].name = _alloc_and_copy_cstr(E.name); \
+ 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); \
- cls->plist[cls->plist_size].class_name = _alloc_and_copy_cstr(E.class_name); \
+ cls->plist[cls->plist_size].hint_string = _alloc_and_copy_cstr(E.hint_string.utf8().get_data()); \
+ cls->plist[cls->plist_size].class_name = _alloc_and_copy_cstr(E.class_name.utf8().get_data()); \
cls->plist[cls->plist_size].usage = E.usage; \
cls->plist_size++; \
} \