Browse Source

String.c_string() now returns char *

Karroffel 8 years ago
parent
commit
005b9aa148
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/godot_cpp/core/String.cpp
  2. 1 1
      include/godot_cpp/core/String.hpp

+ 1 - 1
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);
 }

+ 1 - 1
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;
 
 };