Fix 2 typos.

This commit is contained in:
Relintai 2022-02-06 11:14:12 +01:00
parent b337b8f7de
commit 679c08c314

View File

@ -1075,7 +1075,7 @@ String String::path_get_basename() const {
}
int ssind = _size - 1;
while (ssind > 0 && (_data[ssind] != '/' || _data[ssind] != '\\')) {
while (ssind > 0 && (_data[ssind] != '/' && _data[ssind] != '\\')) {
--ssind;
}
@ -1103,7 +1103,7 @@ String String::path_get_last_segment() const {
}
int ssind = seind - 1;
while (ssind > 0 && (_data[ssind] != '/' || _data[ssind] != '\\')) {
while (ssind > 0 && (_data[ssind] != '/' && _data[ssind] != '\\')) {
--ssind;
}