fixes #22828 - res://user had incorrect substr value

This commit is contained in:
exts 2018-10-07 09:49:48 -05:00
parent 5676632a3b
commit 18b6f5a6c9

View file

@ -3092,7 +3092,7 @@ String String::simplify_path() const {
} else if (s.begins_with("user://")) {
drive = "user://";
s = s.substr(6, s.length());
s = s.substr(7, s.length());
} else if (s.begins_with("/") || s.begins_with("\\")) {
drive = s.substr(0, 1);