From 2eaad1cfd1c96538d7aaf8bbd46535f8a143d2ad Mon Sep 17 00:00:00 2001 From: George Marques Date: Sat, 3 Sep 2016 19:35:42 -0300 Subject: [PATCH] Fix root path resolution on PCK file --- core/io/file_access_pack.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp index 5c8c741f286..1632b841c6d 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;