mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-12 23:02:02 +02:00
Fix incorrect clipping in String::substr_index().
This commit is contained in:
parent
b0a72e933d
commit
dcd00dec81
@ -934,7 +934,7 @@ String String::substr_index(const int start_index, const int end_index) const {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (end_index >= s) {
|
if (end_index > s) {
|
||||||
return substr(start_index, (s - 1) - start_index);
|
return substr(start_index, (s - 1) - start_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user