summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2016-09-03 19:35:42 -0300
committerGeorge Marques <george@gmarqu.es>2016-09-03 19:35:42 -0300
commit2eaad1cfd1c96538d7aaf8bbd46535f8a143d2ad (patch)
tree1f3a23eba97e55ab657805566f1204191b6014c4
parentc1dfbb7628e93370217eff204d997640793054e4 (diff)
Fix root path resolution on PCK file
-rw-r--r--core/io/file_access_pack.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp
index 5c8c741f28..1632b841c6 100644
--- a/core/io/file_access_pack.cpp
+++ b/core/io/file_access_pack.cpp
@@ -409,6 +409,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;