Browse Source

Fix root path resolution on PCK file

George Marques 9 years ago
parent
commit
2eaad1cfd1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/io/file_access_pack.cpp

+ 2 - 0
core/io/file_access_pack.cpp

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