Merge branch 'master' of github.com:Relintai/rcpp_cms

This commit is contained in:
Relintai 2021-11-09 17:47:57 +01:00
commit eb8c105f72
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -5,6 +5,8 @@ bin/**
*.a
*.pyc
.cache/**
settings.json
compile_commands.json

View File

@ -44,7 +44,7 @@ void String::erase(const char element) {
void String::erase(const int start_index, const int length) {
int sil = start_index + length;
ERR_FAIL_INDEX(sil, _size);
ERR_FAIL_INDEX(sil, _size + 1);
if (length >= _size) {
_size = 0;