From 1342551664091c1ceb931ee45d9c43f09df5f1ff Mon Sep 17 00:00:00 2001 From: Saracen Date: Wed, 6 Nov 2019 03:32:02 +0000 Subject: Fix localise_path method so that uncached scripts don't sometimes get loaded with two backslashes --- core/project_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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)); }; } -- cgit v1.2.3