diff options
author | Bastiaan Olij <mux213@gmail.com> | 2019-04-07 17:05:48 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-07 17:05:48 +1000 |
commit | df04c4097fe09204e1906ae76996b80376d84d34 (patch) | |
tree | b97be4daa825844e5b6e29575b88a695023dbabc /src | |
parent | c714f99376ddf32c01b76491d9340ad92e998a0f (diff) | |
parent | 459d3d28e44515dbb6d3c79b683c5efcd9a910fe (diff) | |
download | redot-cpp-df04c4097fe09204e1906ae76996b80376d84d34.tar.gz |
Merge pull request #259 from BastiaanOlij/update_3.1_stable
Synced with Godot 3.1 stable
Diffstat (limited to 'src')
-rw-r--r-- | src/core/String.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/String.cpp b/src/core/String.cpp index 3535322..1f4be2a 100644 --- a/src/core/String.cpp +++ b/src/core/String.cpp @@ -99,7 +99,7 @@ String::~String() { } wchar_t &String::operator[](const int idx) { - return *godot::api->godot_string_operator_index(&_godot_string, idx); + return *const_cast<wchar_t *>(godot::api->godot_string_operator_index(&_godot_string, idx)); } wchar_t String::operator[](const int idx) const { |