summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-06 22:33:13 +0100
committerGitHub <noreply@github.com>2019-11-06 22:33:13 +0100
commit99beb9afe618d648ad2283dd8cc60adb49d36492 (patch)
tree71a276f703fdd685f33e4f10bec16a413fe45b5b /core
parent74c4543c4ba00bf9430f48e29e116c58c1643bf5 (diff)
parent1342551664091c1ceb931ee45d9c43f09df5f1ff (diff)
Merge pull request #33380 from SaracenOne/localise_path_fix
Fix localise_path method
Diffstat (limited to 'core')
-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));
};
}