fixes #22828 - res://user had incorrect substr value
(cherry picked from commit 18b6f5a6c9
)
This commit is contained in:
parent
8ce8a45219
commit
a7d070d2d5
|
@ -3011,7 +3011,7 @@ String String::simplify_path() const {
|
||||||
} else if (s.begins_with("user://")) {
|
} else if (s.begins_with("user://")) {
|
||||||
|
|
||||||
drive = "user://";
|
drive = "user://";
|
||||||
s = s.substr(6, s.length());
|
s = s.substr(7, s.length());
|
||||||
} else if (s.begins_with("/") || s.begins_with("\\")) {
|
} else if (s.begins_with("/") || s.begins_with("\\")) {
|
||||||
|
|
||||||
drive = s.substr(0, 1);
|
drive = s.substr(0, 1);
|
||||||
|
|
Loading…
Reference in New Issue