diff --git a/include/godot_cpp/core/String.cpp b/include/godot_cpp/core/String.cpp index 9b344c79..e2c2182b 100644 --- a/include/godot_cpp/core/String.cpp +++ b/include/godot_cpp/core/String.cpp @@ -126,7 +126,7 @@ String::operator NodePath() const return NodePath(*this); } -const wchar_t *String::c_string() const +const char *String::c_string() const { return godot_string_c_str(&_godot_string); } diff --git a/include/godot_cpp/core/String.hpp b/include/godot_cpp/core/String.hpp index 1beaf215..ee6532ea 100644 --- a/include/godot_cpp/core/String.hpp +++ b/include/godot_cpp/core/String.hpp @@ -65,7 +65,7 @@ public: operator NodePath() const; - const wchar_t *c_string() const; + const char *c_string() const; };