summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2019-11-06 03:32:02 +0000
committerSaracen <SaracenOne@gmail.com>2019-11-06 03:32:02 +0000
commit1342551664091c1ceb931ee45d9c43f09df5f1ff (patch)
tree0f80a27da4eec323b602fe7d775388a003f36ddd
parentd482a1d8e8b4e68f2f386ba618cd091c79c20424 (diff)
Fix localise_path method so that uncached scripts don't sometimes get loaded with two backslashes
-rw-r--r--core/project_settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/project_settings.cpp b/core/project_settings.cpp
index c2241ed926..7704c7b377 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, path.size() - sep);
+ return plocal + path.substr((sep + 1), path.size() - (sep + 1));
};
}