Skip to content

Commit

Permalink
Synced with Godot 3.1 stable
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiaanOlij committed Apr 7, 2019
1 parent c714f99 commit 459d3d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion godot_headers
2 changes: 1 addition & 1 deletion src/core/String.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 459d3d2

Please sign in to comment.