From e8b822c64a13313c53f86357c4c139ec9fc7aebe Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 4 Nov 2021 11:17:43 +0100 Subject: [PATCH 1/2] Small fix. --- core/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/string.cpp b/core/string.cpp index 6dd509f..733db7f 100644 --- a/core/string.cpp +++ b/core/string.cpp @@ -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; From 98d13f5f813f3b63b5c05c96a821bd57662e54b5 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 4 Nov 2021 11:18:52 +0100 Subject: [PATCH 2/2] Add .cache folder to gitignore. --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 261f7aa..0e4f67e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,8 @@ bin/** *.a *.pyc +.cache/** + settings.json compile_commands.json