mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-10 21:52:08 +02: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) {
|
void String::erase(const int start_index, const int length) {
|
||||||
int sil = start_index + length;
|
int sil = start_index + length;
|
||||||
|
|
||||||
ERR_FAIL_INDEX(sil, _size);
|
ERR_FAIL_INDEX(sil, _size + 1);
|
||||||
|
|
||||||
if (length >= _size) {
|
if (length >= _size) {
|
||||||
_size = 0;
|
_size = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user