소스 검색

Merge pull request #33380 from SaracenOne/localise_path_fix

Fix localise_path method
Rémi Verschelde 5 년 전
부모
커밋
99beb9afe6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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));
 	};
 }