diff --git a/core/ustring.cpp b/core/ustring.cpp index d3146415eec..43ec465ee12 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -3011,7 +3011,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);