From 459d3d28e44515dbb6d3c79b683c5efcd9a910fe Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Sun, 7 Apr 2019 16:49:28 +1000 Subject: [PATCH] Synced with Godot 3.1 stable --- LICENSE.md | 2 +- godot_headers | 2 +- src/core/String.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index e91703e7..91df97eb 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ # MIT License -Copyright (c) 2017 GodotNativeTools +Copyright (c) 2017-2019 GodotNativeTools Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/godot_headers b/godot_headers index b98ac387..489db276 160000 --- a/godot_headers +++ b/godot_headers @@ -1 +1 @@ -Subproject commit b98ac387a1407c16536fdde79466f932433adb0b +Subproject commit 489db2761c8aa0f49efbbc729dfa728f850f9756 diff --git a/src/core/String.cpp b/src/core/String.cpp index 35353220..1f4be2ae 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 {