Explorar o código

Merge pull request #22831 from exts/bugfix/simplifypath

Fixes #22828 - res://user had incorrect substr value
Rémi Verschelde %!s(int64=7) %!d(string=hai) anos
pai
achega
3b6c5f7379
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/ustring.cpp

+ 1 - 1
core/ustring.cpp

@@ -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);