summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-10-07 18:53:52 +0200
committerGitHub <noreply@github.com>2018-10-07 18:53:52 +0200
commit3b6c5f737926a0a4d2432b385a57856691e1cbc8 (patch)
treeb39092a96ba5784fca7911e129945ef0dcb284f2
parentb04b83bdcefcbc7e49c68eecd04ffa57175b488b (diff)
parent18b6f5a6c92ec01332654b5537eb4af81ea734dc (diff)
Merge pull request #22831 from exts/bugfix/simplifypath
Fixes #22828 - res://user had incorrect substr value
-rw-r--r--core/ustring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp
index 3f073b181f..28bbe1d834 100644
--- a/core/ustring.cpp
+++ b/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);