summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-01-12 18:27:11 +0100
committerGitHub <noreply@github.com>2018-01-12 18:27:11 +0100
commitda47a20100fc5f28456db9acbd387b93a427aec4 (patch)
treeae05fef435bb8a5ac10939d56fee1b12e32a4546
parent187e3d103944de8713ebec93f90c333d4750710a (diff)
parenta5e98c5e33fe95b157f96ce82709b60c54f809f5 (diff)
Merge pull request #15628 from endragor/fix-gdnative-charstrings
Fix GDNative procedures returning godot_char_string
-rw-r--r--modules/gdnative/gdnative/string.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdnative/gdnative/string.cpp b/modules/gdnative/gdnative/string.cpp
index 9ce2b1406d..7f5dbc12be 100644
--- a/modules/gdnative/gdnative/string.cpp
+++ b/modules/gdnative/gdnative/string.cpp
@@ -932,7 +932,7 @@ godot_char_string GDAPI godot_string_ascii(const godot_string *p_self) {
const String *self = (const String *)p_self;
godot_char_string result;
- memnew_placement(&result, String(self->ascii()));
+ memnew_placement(&result, CharString(self->ascii()));
return result;
}
@@ -942,7 +942,7 @@ godot_char_string GDAPI godot_string_ascii_extended(const godot_string *p_self)
godot_char_string result;
- memnew_placement(&result, String(self->ascii(true)));
+ memnew_placement(&result, CharString(self->ascii(true)));
return result;
}
@@ -952,7 +952,7 @@ godot_char_string GDAPI godot_string_utf8(const godot_string *p_self) {
godot_char_string result;
- memnew_placement(&result, String(self->utf8()));
+ memnew_placement(&result, CharString(self->utf8()));
return result;
}