diff options
author | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2019-11-26 13:42:18 +0100 |
---|---|---|
committer | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2019-11-26 13:42:18 +0100 |
commit | a1f1a1d7987912fffb1b174f09adda47d270decb (patch) | |
tree | 27a52e438cdbc1a190034dd7a7b110175c22a995 | |
parent | ae04d23cce118050f65e595e2f9e216e35b767bb (diff) |
Revert "Fix localise_path method so that uncached scripts don't sometimes get loaded with two backslashes"
This reverts commit 1342551664091c1ceb931ee45d9c43f09df5f1ff.
-rw-r--r-- | core/project_settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/project_settings.cpp b/core/project_settings.cpp index ba5cdd782f..067578e354 100644 --- a/core/project_settings.cpp +++ b/core/project_settings.cpp @@ -107,7 +107,7 @@ String ProjectSettings::localize_path(const String &p_path) const { if (plocal == "") { return ""; }; - return plocal + path.substr((sep + 1), path.size() - (sep + 1)); + return plocal + path.substr(sep, path.size() - sep); }; } |