Skip to content

Commit

Permalink
Merge pull request #259 from BastiaanOlij/update_3.1_stable
Browse files Browse the repository at this point in the history
Synced with Godot 3.1 stable
  • Loading branch information
BastiaanOlij authored Apr 7, 2019
2 parents c714f99 + 459d3d2 commit df04c40
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 df04c40

Please sign in to comment.