Explorar o código

Fix localise_path method so that uncached scripts don't sometimes get loaded with two backslashes

Saracen %!s(int64=5) %!d(string=hai) anos
pai
achega
1342551664
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/project_settings.cpp

+ 1 - 1
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));
 	};
 }