소스 검색

Fix root path resolution on PCK file

George Marques 9 년 전
부모
커밋
1d759f02e6
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      core/io/file_access_pack.cpp

+ 2 - 0
core/io/file_access_pack.cpp

@@ -398,6 +398,8 @@ Error DirAccessPack::change_dir(String p_dir) {
 
 	nd = nd.simplify_path();
 
+	if (nd == "") nd = ".";
+
 	if (nd.begins_with("/")) {
 		nd = nd.replace_first("/", "");
 		absolute = true;