From 459d3d28e44515dbb6d3c79b683c5efcd9a910fe Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Sun, 7 Apr 2019 16:49:28 +1000 Subject: Synced with Godot 3.1 stable --- src/core/String.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/String.cpp') 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(godot::api->godot_string_operator_index(&_godot_string, idx)); } wchar_t String::operator[](const int idx) const { -- cgit v1.2.3