mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Small fix.
This commit is contained in:
parent
cc0ca4762a
commit
e8b822c64a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user